From 91ce21b2d7978837b233e152ac63863a910eaf21 Mon Sep 17 00:00:00 2001 From: Ian Stakenvicius Date: Thu, 29 Nov 2012 15:37:52 -0500 Subject: Fix glibc-isms with #define _GNU_SOURCE This is a combination of commits c9485bf12eafad22dbe316ccbf3a9506d4cace66 abd4a3a3bf5851f07cac6665f35c8b92279c4a47 Signed-off-by: Anthony G. Basile --- src/libudev/log.c | 1 + src/libudev/path-util.c | 2 ++ src/libudev/util.c | 2 ++ 3 files changed, 5 insertions(+) (limited to 'src/libudev') diff --git a/src/libudev/log.c b/src/libudev/log.c index 5c07b626c2..8328cf6b20 100644 --- a/src/libudev/log.c +++ b/src/libudev/log.c @@ -18,6 +18,7 @@ You should have received a copy of the GNU Lesser General Public License along with systemd; If not, see . ***/ +#define _GNU_SOURCE #include #include diff --git a/src/libudev/path-util.c b/src/libudev/path-util.c index 70c8a8af06..de9ec296df 100644 --- a/src/libudev/path-util.c +++ b/src/libudev/path-util.c @@ -19,6 +19,8 @@ along with systemd; If not, see . ***/ +#define _GNU_SOURCE + #include #include #include diff --git a/src/libudev/util.c b/src/libudev/util.c index d8c5bb2e1e..08162e2a73 100644 --- a/src/libudev/util.c +++ b/src/libudev/util.c @@ -19,6 +19,8 @@ along with systemd; If not, see . ***/ +#define _GNU_SOURCE + #include #include #include -- cgit v1.2.3-54-g00ecf