$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);
     }