From 9c6d6519236f536efcd284f714e6f3f145767a57 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 1 May 2016 18:51:28 -0700 Subject: Adding -D_GNU_SOURCE to compiler command line. * configure (lang_flags): -D_GNU_SOURCE added. * ftw.c (__USE_GNU): Macro definition removed. --- configure | 2 +- ftw.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/configure b/configure index 98caaf7b..1518af29 100755 --- a/configure +++ b/configure @@ -103,7 +103,7 @@ yacc='$(cross)$(tool_prefix)$(yaccname)' yacc_given= nm='$(cross)$(tool_prefix)nm' opt_flags=-O2 -lang_flags='-ansi -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200112' +lang_flags='-ansi -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200112 -D_GNU_SOURCE' diag_flags='-Wall -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=strict-prototypes' debug_flags=-g debug_only_flags=-DTXR_DEBUG diff --git a/ftw.c b/ftw.c index c906d6a3..63509ed5 100644 --- a/ftw.c +++ b/ftw.c @@ -29,9 +29,6 @@ #include #include #include -#ifndef __USE_GNU -#define __USE_GNU -#endif #include #include "config.h" #include ALLOCA_H -- cgit v1.2.3