$OpenBSD$
--- cegui/src/CEGUIDynamicModule.cpp.orig Mon Sep 6 18:29:11 2010
+++ cegui/src/CEGUIDynamicModule.cpp Mon Sep 6 18:30:09 2010
@@ -46,7 +46,7 @@
# include "macPlugins.h"
#endif
-#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
# include "dlfcn.h"
#endif
@@ -64,7 +64,7 @@ DynamicModule::DynamicModule(const String& name) :
return;
} // if(name.empty())
-#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#if defined(CEGUI_HAS_VERSION_SUFFIX) || defined(CEGUI_HAS_BUILD_SUFFIX)
// check if we are being asked to open a CEGUI .so, if so postfix the
// name with our package version
@@ -109,7 +109,7 @@ DynamicModule::DynamicModule(const String& name) :
d_handle = DYNLIB_LOAD(d_moduleName.c_str());
-#if defined(__linux__) || defined(__MINGW32__) || defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__MINGW32__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
if (!d_handle)
{
// see if we need to add the leading 'lib'
@@ -150,7 +150,7 @@ void* DynamicModule::getSymbolAddress(const String& sy
String DynamicModule::getFailureString() const
{
String retMsg;
-#if defined(__linux__) || defined (__APPLE_CC__) || defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__linux__) || defined (__APPLE_CC__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
retMsg = DYNLIB_ERROR();
#elif defined(__WIN32__) || defined(_WIN32)
LPVOID msgBuffer;