summaryrefslogtreecommitdiffstats
path: root/gtk2
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-07-11 17:12:39 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-07-11 22:06:00 +0900
commit38d735962dc18ce299f1cc47b2d02314ef623f24 (patch)
tree37f38b2e478a9d6f1c46bab97eff45ff536d6d32 /gtk2
parent9dfcf38a3e4fbd14f15a6bb687fc85fd5ca34fd4 (diff)
downloadkgtk-qt3-r14.0.13.tar.gz
kgtk-qt3-r14.0.13.zip
Fixed support for building with glibc >= 2.34.r14.0.13r14.0.x
This resolves issue #3. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit b7e7bb99e1c85325ff55866434f797dfb5c91187)
Diffstat (limited to 'gtk2')
-rw-r--r--gtk2/kgtk2.c6
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)