U277 - Gnome compilation on Redhat 7.2 & 8.0

Reported on RH 7.2 and 8.0.  Compilation failed because system headers that
needed _GNU_SOURCE on these Redhat versions got included before it was
defined.  To ensure _GNU_SOURCE is defined, added an autodetect for it to
config1.h and removed the need to set it in unixres.c.  __linux__ is also
checked elsewhere.
This commit is contained in:
cohrs
2003-03-02 06:07:19 +00:00
parent a9a7ffe18f
commit b6da412ef1
4 changed files with 7 additions and 4 deletions

View File

@@ -19,9 +19,6 @@
#ifdef GETRES_SUPPORT
# if defined(LINUX)
#ifdef __GNUC__
#define _GNU_SOURCE
#endif
/* requires dynamic linking with libc */
#include <dlfcn.h>