diff options
Diffstat (limited to 'gtk2')
-rw-r--r-- | gtk2/kgtk2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2/kgtk2.c b/gtk2/kgtk2.c index e8e939b..4e83191 100644 --- a/gtk2/kgtk2.c +++ b/gtk2/kgtk2.c @@ -76,7 +76,9 @@ TODO /* * For SWT apps (e.g. eclipse) we need to override dlsym. */ +#ifdef HAVE_DL_SYM extern void *_dl_sym(void *, const char *, void *); +#endif static void * real_dlsym (void *handle, const char *name); typedef enum @@ -2246,7 +2248,11 @@ static void * real_dlsym(void *handle, const char *name) if (!realFunction) { // Get the real dlsym function +#ifdef HAVE_DL_SYM realFunction = _dl_sym(RTLD_NEXT, "dlsym", dlsym); +#else + realFunction = dlvsym(RTLD_NEXT, "dlsym", "GLIBC_2.2.5"); +#endif } if (realFunction) |