Skip to content

Commit

Permalink
FIX eclipse-omr#50 : Use GNU Feature flag before including any system…
Browse files Browse the repository at this point in the history
… header files

Signed-off-by: Andrew Young <[email protected]>
  • Loading branch information
youngar committed Mar 31, 2016
1 parent 59ac51c commit edb7696
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions port/unix/omrintrospect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <pthread.h>
#include <ucontext.h>
Expand All @@ -42,7 +43,6 @@

#if defined(LINUX)
#include <dirent.h>
#define __USE_GNU 1
#include <dlfcn.h>
#elif defined(AIXPPC)
#include <sys/ldr.h>
Expand Down

0 comments on commit edb7696

Please sign in to comment.