You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
792 B

  1. --- a/dlib/interposition.c
  2. +++ b/dlib/interposition.c
  3. @@ -93,13 +93,13 @@ write$NOCANCEL(HAVE_PROT_WRITE_1, HAVE_P
  4. #endif /* HAVE_DARWIN */
  5. -#ifndef __USE_GNU
  6. -#define __USE_GNU /* XXX for RTLD_NEXT on Linux */
  7. -#endif /* !__USE_GNU */
  8. -
  9. #include <dlfcn.h>
  10. +#ifndef RTLD_NEXT
  11. +#define RTLD_NEXT ((void *) -1l)
  12. +#endif
  13. +
  14. #ifdef __COVERITY__
  15. /*
  16. * Coverity naturally has no idea what the function sys_foo calls does,
  17. --- a/lib/address.c
  18. +++ b/lib/address.c
  19. @@ -48,11 +48,12 @@
  20. #include "upnp.h"
  21. -#ifndef __USE_GNU
  22. -#define __USE_GNU /* XXX for RTLD_NEXT on Linux */
  23. -#endif /* !__USE_GNU */
  24. #include <dlfcn.h>
  25. +#ifndef RTLD_NEXT
  26. +#define RTLD_NEXT ((void *) -1l)
  27. +#endif
  28. +
  29. static const char rcsid[] =
  30. "$Id: address.c,v 1.288.4.4.6.4 2020/11/11 17:02:23 karls Exp $";