0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-22 14:39:19 +00:00
Files
packages/net/dante/patches/200-fix-RTLD_NEXT.patch
Rosen Penev 0a5786e15e dante: update to 1.4.4
Refreshed patches.

Use libtirpc to fix missing bindresvport. It's not actually used.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2025-01-06 18:50:24 -08:00

39 lines
799 B
Diff

--- a/dlib/interposition.c
+++ b/dlib/interposition.c
@@ -93,13 +93,13 @@ 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,
--- 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.6.4.4.1 2024/11/21 10:22:42 michaels Exp $";