summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-22 00:23:55 +0200
committerGitHub <noreply@github.com>2018-06-22 00:23:55 +0200
commit9b0ab441ebc1a69df627c4b665f02ab28d995020 (patch)
tree94a9d73bb4cee3b211fa5a2bbcfe3be4fa7d1a22 /src/common
parent3e3a0935340a607f6b4a4c6ff193de63e5d69430 (diff)
parentec62bdfdde4f04e2ef05592219663ce183cb16be (diff)
downloadhercules-9b0ab441ebc1a69df627c4b665f02ab28d995020.tar.gz
hercules-9b0ab441ebc1a69df627c4b665f02ab28d995020.tar.bz2
hercules-9b0ab441ebc1a69df627c4b665f02ab28d995020.tar.xz
hercules-9b0ab441ebc1a69df627c4b665f02ab28d995020.zip
Merge pull request #2079 from 4144/deepbind
Remove flag RTLD_DEEPBIND from dlopen.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/HPM.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/common/HPM.h b/src/common/HPM.h
index e55397022..efa5d8370 100644
--- a/src/common/HPM.h
+++ b/src/common/HPM.h
@@ -42,11 +42,7 @@
#define DLL HINSTANCE
#else // ! WIN32
#include <dlfcn.h>
- #ifdef RTLD_DEEPBIND // Certain linux distributions require this, but it's not available everywhere
- #define plugin_open(x) dlopen((x),RTLD_NOW|RTLD_DEEPBIND)
- #else // ! RTLD_DEEPBIND
- #define plugin_open(x) dlopen((x),RTLD_NOW)
- #endif // RTLD_DEEPBIND
+ #define plugin_open(x) dlopen((x), RTLD_NOW)
#define plugin_import(x,y,z) (z)dlsym((x),(y))
#define plugin_close(x) dlclose(x)
#define plugin_geterror(buf) ((void)buf, dlerror())