From: Guillem Jover Date: Tue, 3 Jan 2012 07:58:52 +0000 (+0100) Subject: build: Do not define already defined _GNU_SOURCE X-Git-Tag: 0.4.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=980f04f77b7ddfcd047ef77b30677b678bebf711;p=thirdparty%2Flibbsd.git 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. --- 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