diff --git a/lib/pidfile.c b/lib/pidfile.c index a26de73..886a29c 100644 --- a/lib/pidfile.c +++ b/lib/pidfile.c @@ -31,7 +31,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#define _GNU_SOURCE /* Needed with GLIBC to get asprintf() */ #include /* utimensat() */ #include /* utimensat() on *BSD */ #include diff --git a/src/Makefile.am b/src/Makefile.am index 9b80a02..1909ada 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -36,7 +36,7 @@ endif AM_CFLAGS = -W -Wall -Wextra AM_CFLAGS += -Wno-unused-result -Wno-unused-parameter -fno-strict-aliasing AM_CPPFLAGS = -DSYSCONFDIR=\"@sysconfdir@\" -DRUNSTATEDIR=\"@runstatedir@\" -AM_CPPFLAGS += -D_BSD_SOURCE -D_DEFAULT_SOURCE +AM_CPPFLAGS += -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE syslogd_SOURCES = syslogd.c syslogd.h socket.c socket.h syslog.h syslogd_SOURCES += timer.c timer.h queue.h compat.h