# HG changeset patch # User reimar # Date 1137529542 0 # Node ID 433e35de3b10e28d3f7f48ce8e10399adc2505c0 # Parent 0b17629dbade78d477ef8403bb5413f85614a31d avoid Solaris 10 compile error with gcc 3.4.5 diff -r 0b17629dbade -r 433e35de3b10 libvo/gl_common.c --- a/libvo/gl_common.c Tue Jan 17 20:07:06 2006 +0000 +++ b/libvo/gl_common.c Tue Jan 17 20:25:42 2006 +0000 @@ -1018,7 +1018,9 @@ static void *getdladdr(const char *s) { #ifdef HAVE_LIBDL #if defined(__sun) || defined(__sgi) - static void *handle = dlopen(NULL, RTLD_LAZY); + static void *handle = NULL; + if (!handle) + handle = dlopen(NULL, RTLD_LAZY); return dlsym(handle, s); #else return dlsym(0, s);