mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 13:02:24 +00:00
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
This commit is contained in:
parent
dcb489559e
commit
065b21ac70
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user