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

File: [local] / ports / graphics / simgear / patches / Attic / patch-simgear_screen_extensions_cxx (download)

Revision 1.2, Tue Mar 2 14:22:23 2010 UTC (14 years, 5 months ago) by yason
Branch: MAIN
Changes since 1.1: +14 -5 lines

update to 2.0.0

$OpenBSD$
--- simgear/screen/extensions.cxx.orig	Tue Mar  2 18:16:02 2010
+++ simgear/screen/extensions.cxx	Tue Mar  2 18:16:49 2010
@@ -121,7 +121,7 @@ void *SGGetGLProcAddress(const char *func) {
         libHandle = dlopen(NULL, RTLD_LAZY);
 
         if (!libHandle) {
-#if defined (__FreeBSD__)
+#if defined (__FreeBSD__) || defined (__OpenBSD__)
             const char *error = dlerror();
 #else
             char *error = dlerror();
@@ -145,7 +145,7 @@ void *SGGetGLProcAddress(const char *func) {
     } else if (libHandle != NULL) {
         fptr = dlsym(libHandle, func);
 
-#if defined (__FreeBSD__)
+#if defined (__FreeBSD__) || defined (__OpenBSD__)
         const char *error = dlerror();
 #else
         char *error = dlerror();