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.
#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
#include "config.h"
-/* needed for struct ucred */
-#if defined(__linux__) && !defined(_GNU_SOURCE)
-#define _GNU_SOURCE
-#endif
-
#include "unix-peer.h"
#include <unistd.h>
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])