diff options
author | Daiki Ueno <dueno@redhat.com> | 2017-06-09 14:44:04 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2017-06-12 11:30:42 +0200 |
commit | b309aea5174d6d3af569c2c54632a35825734579 (patch) | |
tree | 951e14e5cc88e4f74bcaeefc0a4a5cef2b5b4b63 | |
parent | efe6dc56c3951c301dda1b548d4cbcd02e074462 (diff) |
build: Allow use of _GNU_SOURCE
This reverts commit 6b457ffc, which forbids the use of GNU extension
for the incompatibility of strerror_r. However, now that strerror_l
is used instead on glibc systems, it has no point to do that.
-rw-r--r-- | common/compat.h | 4 | ||||
-rw-r--r-- | common/unix-peer.c | 5 | ||||
-rw-r--r-- | configure.ac | 3 |
3 files changed, 3 insertions, 9 deletions
diff --git a/common/compat.h b/common/compat.h index acbccf9..15b3106 100644 --- a/common/compat.h +++ b/common/compat.h @@ -40,10 +40,6 @@ #include <sys/types.h> #include <sys/stat.h> -#ifdef _GNU_SOURCE -#error Make the crap stop. _GNU_SOURCE is completely unportable and breaks all sorts of behavior -#endif - #if !defined(__cplusplus) && (__GNUC__ > 2) #define GNUC_PRINTF(x, y) __attribute__((__format__(__printf__, x, y))) #else diff --git a/common/unix-peer.c b/common/unix-peer.c index ce0de3b..f8f20e6 100644 --- a/common/unix-peer.c +++ b/common/unix-peer.c @@ -34,11 +34,6 @@ #include "config.h" -/* needed for struct ucred */ -#if defined(__linux__) && !defined(_GNU_SOURCE) -#define _GNU_SOURCE -#endif - #include "unix-peer.h" #include <unistd.h> diff --git a/configure.ac b/configure.ac index 2fab9e9..5753664 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,9 @@ AM_SANITY_CHECK AM_MAINTAINER_MODE([enable]) m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],) +dnl Enable platform specific extensions. +AC_USE_SYSTEM_EXTENSIONS + LT_PREREQ([2.2.6]) LT_INIT([dlopen disable-static]) |