packages/net/dante/patches/200-fix-RTLD_NEXT.patch
David Yang b75a512915 dante: adopt package
Give this package more love by adopting it :)

Changes since 1.4.1-4:
  * change maintainer to me
  * update to 1.4.3
  + add example config files sockd.conf and socks.conf
  + add service file for sockd
  * update 200-fix-RTLD_NEXT.patch
  - remove merged 210-deactivate-sched_setscheduler.patch
  * fix Autoconf build file

Signed-off-by: David Yang <mmyangfl@gmail.com>
2021-06-24 03:44:23 +08:00

38 lines
792 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 2020/11/11 17:02:23 karls Exp $";