Mercurial > mplayer.hg
changeset 17419:433e35de3b10
avoid Solaris 10 compile error with gcc 3.4.5
author | reimar |
---|---|
date | Tue, 17 Jan 2006 20:25:42 +0000 |
parents | 0b17629dbade |
children | a9e2922e91fd |
files | libvo/gl_common.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);