From d167da13024b536dc75b00a9f458de1bc7518b22 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 20 Apr 2016 06:44:14 -0700 Subject: ftw.c affected by g++/glibc issue __USE_GNU is defined. When compiling as C++, __USE_GNU is defined even though we use -ansi and don't specify -D_GNU_SOURCE anywhere. Glibc headers don't seem to respond to the C++ ANSI options. ftw.c: Workaround for compiler warning: only define __USE_GNU if it is not defined already. --- ftw.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ftw.c') diff --git a/ftw.c b/ftw.c index 7b18cebd..6128a652 100644 --- a/ftw.c +++ b/ftw.c @@ -29,7 +29,9 @@ #include #include #include +#ifndef __USE_GNU #define __USE_GNU +#endif #include #include "config.h" #include ALLOCA_H -- cgit v1.2.3