summaryrefslogtreecommitdiff
path: root/games/simgear/patches/patch-af
blob: 443e79df74149e3a3485c60328886e3cad1dd91b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
     }