Annotation of ports/graphics/cegui/patches/patch-src_CEGUIDynamicModule_cpp, Revision 1.1
1.1 ! yason 1: $OpenBSD$
! 2: --- src/CEGUIDynamicModule.cpp.orig Sun Jan 25 17:54:19 2009
! 3: +++ src/CEGUIDynamicModule.cpp Sun Jan 25 17:56:26 2009
! 4: @@ -46,7 +46,7 @@
! 5: # include "macPlugins.h"
! 6: #endif
! 7:
! 8: -#if defined(__linux__)
! 9: +#if defined(__linux__) || defined(__OpenBSD__)
! 10: # include "dlfcn.h"
! 11: #endif
! 12:
! 13: @@ -64,7 +64,7 @@ DynamicModule::DynamicModule(const String& name) :
! 14: return;
! 15: } // if(name.empty())
! 16:
! 17: -#if defined(__linux__)
! 18: +#if defined(__linux__) || defined(__OpenBSD__)
! 19: // dlopen() does not add .so to the filename, like windows does for .dll
! 20: if (d_moduleName.substr(d_moduleName.length() - 3, 3) != ".so")
! 21: d_moduleName += ".so";
! 22: @@ -121,7 +121,7 @@ void* DynamicModule::getSymbolAddress(const String& sy
! 23: String DynamicModule::getFailureString() const
! 24: {
! 25: String retMsg;
! 26: -#if defined(__linux__) || defined (__APPLE_CC__)
! 27: +#if defined(__linux__) || defined (__APPLE_CC__) || defined(__OpenBSD__)
! 28: retMsg = DYNLIB_ERROR();
! 29: #elif defined(__WIN32__) || defined(_WIN32)
! 30: LPVOID msgBuffer;
CVSweb