]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/server.cpp
Merge commit 'e7c45da823515747a88569374d62717b72dcf078' into garux-merge
[xonotic/netradiant.git] / radiant / server.cpp
index 2a264e6dcd14ede2803c2ee7e3789f5dff3aa416..679e56bbd626250ef74722d506d25c6b917d5553 100644 (file)
@@ -144,13 +144,17 @@ FunctionPointer findSymbol( const char* symbol ){
 
 #include <dlfcn.h>
 
+#ifndef RTLD_DEEPBIND
+#define RTLD_DEEPBIND 0
+#endif
+
 class DynamicLibrary {
        void *m_library;
 public:
 typedef int ( *FunctionPointer )();
 
 DynamicLibrary( const char* filename ){
-       m_library = dlopen( filename, RTLD_NOW );
+       m_library = dlopen( filename, RTLD_NOW | (RTLD_DEEPBIND + 0) );
 }
 ~DynamicLibrary(){
        if ( !failed() ) {