$NetBSD$

--- simgear/screen/extensions.cxx.orig	2010-02-17 15:39:22.000000000 +0000
+++ simgear/screen/extensions.cxx
@@ -145,11 +145,7 @@ void *SGGetGLProcAddress(const char *fun
     } else 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);
     }
