summaryrefslogtreecommitdiff
path: root/games/simgear/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'games/simgear/patches/patch-af')
-rw-r--r--games/simgear/patches/patch-af16
1 files changed, 16 insertions, 0 deletions
diff --git a/games/simgear/patches/patch-af b/games/simgear/patches/patch-af
new file mode 100644
index 00000000000..443e79df741
--- /dev/null
+++ b/games/simgear/patches/patch-af
@@ -0,0 +1,16 @@
+$NetBSD: patch-af,v 1.1 2007/10/05 21:06:01 joerg Exp $
+
+--- simgear/screen/extensions.cxx.orig 2007-10-05 20:08:51.000000000 +0000
++++ simgear/screen/extensions.cxx
+@@ -119,11 +119,7 @@ void *SGGetGLProcAddress(const char *fun
+ if (libHandle != NULL) {
+ fptr = dlsym(libHandle, func);
+
+-#if defined (__FreeBSD__)
+ const char *error = dlerror();
+-#else
+- char *error = dlerror();
+-#endif
+ if (error)
+ SG_LOG(SG_GENERAL, SG_INFO, error);
+ }