]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/server.cpp
use xdg-open to open url on Linux, fix #87
[xonotic/netradiant.git] / radiant / server.cpp
index 500cc58e72682aecf8b733d708529bbf6f1072e9..c58ad8799d497a40c382af2664358e03ecd4b7a4 100644 (file)
@@ -131,7 +131,7 @@ bool failed(){
        return m_library == 0;
 }
 FunctionPointer findSymbol( const char* symbol ){
-       FunctionPointer address = GetProcAddress( m_library, symbol );
+       FunctionPointer address = (FunctionPointer) GetProcAddress( m_library, symbol );
        if ( address == 0 ) {
                globalErrorStream() << "GetProcAddress failed: '" << symbol << "'\n";
                globalErrorStream() << "GetLastError: " << FormatGetLastError();
@@ -151,7 +151,7 @@ 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() ) {