diff options
Diffstat (limited to 'games-roguelike/nethack/files/3.4.1-GNOME-RTLD_NEXT.patch')
-rw-r--r-- | games-roguelike/nethack/files/3.4.1-GNOME-RTLD_NEXT.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/games-roguelike/nethack/files/3.4.1-GNOME-RTLD_NEXT.patch b/games-roguelike/nethack/files/3.4.1-GNOME-RTLD_NEXT.patch new file mode 100644 index 000000000000..728a2d6ab137 --- /dev/null +++ b/games-roguelike/nethack/files/3.4.1-GNOME-RTLD_NEXT.patch @@ -0,0 +1,26 @@ +diff -ur base.1/sys/unix/unixres.c work/sys/unix/unixres.c +--- base.1/sys/unix/unixres.c 2003-02-23 09:43:39.000000000 -0500 ++++ work/sys/unix/unixres.c 2003-03-05 16:56:12.000000000 -0500 +@@ -14,14 +14,19 @@ + * hide them. + */ + ++/* _GNU_SOURCE has to be set before including config.h, as otherwise ++ * features.h will be included and it will be too late. ++ */ ++ ++#if defined(linux) && defined(__GNUC__) ++# define _GNU_SOURCE ++#endif ++ + #include "config.h" + + #ifdef GETRES_SUPPORT + + # if defined(LINUX) +-#ifdef __GNUC__ +-#define _GNU_SOURCE +-#endif + + /* requires dynamic linking with libc */ + #include <dlfcn.h> |