From 980f04f77b7ddfcd047ef77b30677b678bebf711 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 3 Jan 2012 08:58:52 +0100 Subject: [PATCH] build: Do not define already defined _GNU_SOURCE The macro is defined by configure on config.h which is now implicitly included by all source files. --- src/Makefile.am | 2 +- src/fpurge.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 0bfeb07..2713e8b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -8,7 +8,7 @@ AM_CPPFLAGS = \ -isystem $(top_srcdir)/include/bsd/ \ -include $(top_builddir)/config.h \ -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED \ - -D_GNU_SOURCE -D__REENTRANT + -D__REENTRANT EXTRA_DIST = \ libbsd.map \ diff --git a/src/fpurge.c b/src/fpurge.c index 19d6537..051b625 100644 --- a/src/fpurge.c +++ b/src/fpurge.c @@ -24,8 +24,6 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#define _GNU_SOURCE 1 - #include #include #include