aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/dante/patches/200-fix-RTLD_NEXT.patch
blob: 594a6f900b4dee3536df808ac81cf1684ea34d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- a/lib/address.c
+++ b/lib/address.c
@@ -48,11 +48,12 @@
 
 #include "upnp.h"
 
-#ifndef __USE_GNU
-#define __USE_GNU /* XXX for RTLD_NEXT on Linux */
-#endif /* !__USE_GNU */
 #include <dlfcn.h>
 
+#ifndef RTLD_NEXT
+#define RTLD_NEXT  ((void *) -1l)
+#endif
+
 static const char rcsid[] =
 "$Id: address.c,v 1.288.4.4 2014/08/15 18:16:40 karls Exp $";
 
--- a/dlib/interposition.c
+++ b/dlib/interposition.c
@@ -93,11 +93,12 @@ write$NOCANCEL(HAVE_PROT_WRITE_1, HAVE_P
 
 #endif /* HAVE_DARWIN */
 
-#ifndef __USE_GNU
-#define __USE_GNU /* XXX for RTLD_NEXT on Linux */
-#endif /* !__USE_GNU */
 #include <dlfcn.h>
 
+#ifndef RTLD_NEXT
+#define RTLD_NEXT  ((void *) -1l)
+#endif
+
 #ifdef __COVERITY__
 /*
  * Coverity naturally has no idea what the function sys_foo calls does,