[MPlayer-cvslog] CVS: main/libvo gl_common.c,1.39,1.40
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Tue Jan 17 21:25:44 CET 2006
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv28962
Modified Files:
gl_common.c
Log Message:
avoid Solaris 10 compile error with gcc 3.4.5
Index: gl_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/gl_common.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- gl_common.c 7 Jan 2006 19:56:55 -0000 1.39
+++ gl_common.c 17 Jan 2006 20:25:42 -0000 1.40
@@ -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);
More information about the MPlayer-cvslog
mailing list