summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-01-17 20:25:42 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-01-17 20:25:42 +0000
commit065b21ac70206db62b3e4e0370058b7a5dcf2430 (patch)
tree0bbbed72f3e327e426617446be8c1765bfb7029f /libvo
parentdcb489559e5580822b2f8c8e2e1cc4417ef86f77 (diff)
downloadmpv-065b21ac70206db62b3e4e0370058b7a5dcf2430.tar.bz2
mpv-065b21ac70206db62b3e4e0370058b7a5dcf2430.tar.xz
avoid Solaris 10 compile error with gcc 3.4.5
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17420 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/gl_common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index 750c904c80..f544120f68 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -1018,7 +1018,9 @@ void swapGlBuffers() {
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);