| 1 | --- a/lib/address.c |
| 2 | +++ b/lib/address.c |
| 3 | @@ -45,11 +45,12 @@ |
| 4 | |
| 5 | #include "interposition.h" |
| 6 | |
| 7 | -#ifndef __USE_GNU |
| 8 | -#define __USE_GNU /* XXX for RTLD_NEXT on Linux */ |
| 9 | -#endif /* !__USE_GNU */ |
| 10 | #include <dlfcn.h> |
| 11 | |
| 12 | +#ifndef RTLD_NEXT |
| 13 | +#define RTLD_NEXT ((void *) -1l) |
| 14 | +#endif |
| 15 | + |
| 16 | static const char rcsid[] = |
| 17 | "$Id: address.c,v 1.177.2.2 2010/05/24 16:38:36 karls Exp $"; |
| 18 | |
| 19 | --- a/dlib/interposition.c |
| 20 | +++ b/dlib/interposition.c |
| 21 | @@ -66,11 +66,12 @@ sendto(HAVE_PROT_SENDTO_1, HAVE_PROT_SEN |
| 22 | HAVE_PROT_SENDTO_4, HAVE_PROT_SENDTO_5, HAVE_PROT_SENDTO_6); |
| 23 | #endif |
| 24 | |
| 25 | -#ifndef __USE_GNU |
| 26 | -#define __USE_GNU /* XXX for RTLD_NEXT on Linux */ |
| 27 | -#endif /* !__USE_GNU */ |
| 28 | #include <dlfcn.h> |
| 29 | |
| 30 | +#ifndef RTLD_NEXT |
| 31 | +#define RTLD_NEXT ((void *) -1l) |
| 32 | +#endif |
| 33 | + |
| 34 | #undef accept |
| 35 | #undef bind |
| 36 | #undef bindresvport |
| 37 | |