[BACK]Return to patch-src_CEGUIDynamicModule_cpp CVS log [TXT][DIR] Up to [local] / ports / graphics / cegui / patches

File: [local] / ports / graphics / cegui / patches / Attic / patch-src_CEGUIDynamicModule_cpp (download)

Revision 1.1, Sun Feb 1 18:45:38 2009 UTC (15 years, 6 months ago) by yason
Branch: MAIN

graphics/cegui added

$OpenBSD$
--- src/CEGUIDynamicModule.cpp.orig	Sun Jan 25 17:54:19 2009
+++ src/CEGUIDynamicModule.cpp	Sun Jan 25 17:56:26 2009
@@ -46,7 +46,7 @@
 #   include "macPlugins.h"
 #endif
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__OpenBSD__)
 #   include "dlfcn.h"
 #endif
 
@@ -64,7 +64,7 @@ DynamicModule::DynamicModule(const String& name) :
 		return;
 	} // if(name.empty())
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__OpenBSD__)
     // dlopen() does not add .so to the filename, like windows does for .dll
     if (d_moduleName.substr(d_moduleName.length() - 3, 3) != ".so")
         d_moduleName += ".so";
@@ -121,7 +121,7 @@ void* DynamicModule::getSymbolAddress(const String& sy
 String DynamicModule::getFailureString() const
 {
     String retMsg;
-#if defined(__linux__) || defined (__APPLE_CC__)
+#if defined(__linux__) || defined (__APPLE_CC__) || defined(__OpenBSD__)
     retMsg = DYNLIB_ERROR();
 #elif defined(__WIN32__) || defined(_WIN32)
     LPVOID msgBuffer;