1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-22 05:27:06 +00:00
termux-packages/packages/zsh/src-module.c.patch
Fredrik Fornwall 51c63287f7 ndk_patches: <dlfcn.h> now #define:s RTLD_*
The Android NDK headers define the RTLD_* values within an enum,
which causes problems with #ifdef checks. Patch these to instead
use #define which is more traditional and what much code expects.
2016-04-18 00:33:02 -04:00

17 lines
474 B
Diff

diff -u -r ../zsh-5.1.1/Src/module.c ./Src/module.c
--- ../zsh-5.1.1/Src/module.c 2015-02-19 14:47:41.000000000 -0500
+++ ./Src/module.c 2015-11-24 18:38:12.383460402 -0500
@@ -1496,8 +1496,10 @@
#else
# ifdef HAVE_DL_H
# include <dl.h>
-# define RTLD_LAZY BIND_DEFERRED
-# define RTLD_GLOBAL DYNAMIC_PATH
+# ifndef __ANDROID__
+# define RTLD_LAZY BIND_DEFERRED
+# define RTLD_GLOBAL DYNAMIC_PATH
+# endif
# else
# include <sys/types.h>
# include <nlist.h>