From edb7696affacc136504a4c707352e1a61099fa56 Mon Sep 17 00:00:00 2001 From: Andrew Young Date: Tue, 29 Mar 2016 14:57:31 -0400 Subject: [PATCH] FIX #50 : Use GNU Feature flag before including any system header files Signed-off-by: Andrew Young --- port/unix/omrintrospect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/port/unix/omrintrospect.c b/port/unix/omrintrospect.c index 71def93b618..2be93664237 100644 --- a/port/unix/omrintrospect.c +++ b/port/unix/omrintrospect.c @@ -22,10 +22,11 @@ * @brief process introspection support */ -/* _GNU_SOURCE forces GLIBC_2.0 sscanf/vsscanf/fscanf for RHEL5 compatability */ #if defined(LINUX) +/* _GNU_SOURCE forces GLIBC_2.0 sscanf/vsscanf/fscanf for RHEL5 compatability */ #define _GNU_SOURCE -#endif /* defined(__GNUC__) */ +#define __USE_GNU 1 +#endif /* defined(LINUX) */ #include #include @@ -42,7 +43,6 @@ #if defined(LINUX) #include -#define __USE_GNU 1 #include #elif defined(AIXPPC) #include