aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/dante/patches/200-fix-RTLD_NEXT.patch
blob: 7281ba60590d044e7ebdb83d7ac479792979f695 (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
@@ -45,11 +45,12 @@
 
 #include "interposition.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.177.2.2 2010/05/24 16:38:36 karls Exp $";
 
--- a/dlib/interposition.c
+++ b/dlib/interposition.c
@@ -66,11 +66,12 @@ sendto(HAVE_PROT_SENDTO_1, HAVE_PROT_SEN
     HAVE_PROT_SENDTO_4, HAVE_PROT_SENDTO_5, HAVE_PROT_SENDTO_6);
 #endif
 
-#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
+
 #undef accept
 #undef bind
 #undef bindresvport