2012-10-10 13:14:39 +00:00
|
|
|
--- a/lib/address.c
|
|
|
|
+++ b/lib/address.c
|
2015-12-17 09:29:54 +00:00
|
|
|
@@ -48,11 +48,12 @@
|
2012-10-10 13:14:39 +00:00
|
|
|
|
2015-12-17 09:29:54 +00:00
|
|
|
#include "upnp.h"
|
2012-10-10 13:14:39 +00:00
|
|
|
|
|
|
|
-#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[] =
|
2015-12-17 09:29:54 +00:00
|
|
|
"$Id: address.c,v 1.288.4.4 2014/08/15 18:16:40 karls Exp $";
|
2012-10-10 13:14:39 +00:00
|
|
|
|
|
|
|
--- a/dlib/interposition.c
|
|
|
|
+++ b/dlib/interposition.c
|
2015-12-17 09:29:54 +00:00
|
|
|
@@ -93,11 +93,12 @@ write$NOCANCEL(HAVE_PROT_WRITE_1, HAVE_P
|
|
|
|
|
|
|
|
#endif /* HAVE_DARWIN */
|
2012-10-10 13:14:39 +00:00
|
|
|
|
|
|
|
-#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
|
|
|
|
+
|
2015-12-17 09:29:54 +00:00
|
|
|
#ifdef __COVERITY__
|
|
|
|
/*
|
|
|
|
* Coverity naturally has no idea what the function sys_foo calls does,
|