$NetBSD: patch-ak,v 1.7 2005/09/15 01:15:47 dmcmahill Exp $ --- src/video_out/video_out_opengl.c.orig 2005-07-17 17:50:07.000000000 -0400 +++ src/video_out/video_out_opengl.c @@ -710,9 +710,11 @@ static void *getdladdr (const GLubyte *_ return res; #elif defined (__sun) || defined (__sgi) - static void *handle = dlopen (NULL, RTLD_LAZY); + { + static void *handle; + handle = dlopen (NULL, RTLD_LAZY); return dlsym (handle, funcName); - + } #else /* all other Un*xes */ return dlsym (0, funcName);