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.
This commit is contained in:
Guillem Jover 2012-01-03 08:58:52 +01:00
parent 8d2f12d7f0
commit 980f04f77b
2 changed files with 1 additions and 3 deletions

View File

@ -8,7 +8,7 @@ AM_CPPFLAGS = \
-isystem $(top_srcdir)/include/bsd/ \ -isystem $(top_srcdir)/include/bsd/ \
-include $(top_builddir)/config.h \ -include $(top_builddir)/config.h \
-DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED \ -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED \
-D_GNU_SOURCE -D__REENTRANT -D__REENTRANT
EXTRA_DIST = \ EXTRA_DIST = \
libbsd.map \ libbsd.map \

View File

@ -24,8 +24,6 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#define _GNU_SOURCE 1
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <stdio_ext.h> #include <stdio_ext.h>