diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-07-11 17:12:39 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-07-11 19:52:22 +0900 |
commit | b7e7bb99e1c85325ff55866434f797dfb5c91187 (patch) | |
tree | 83d9c334ef585a00bee345bd56c4c28aa63483e2 /gtk2 | |
parent | bb2a57921a882261708ec91c04803a941e773994 (diff) | |
download | kgtk-qt3-b7e7bb99e1c85325ff55866434f797dfb5c91187.tar.gz kgtk-qt3-b7e7bb99e1c85325ff55866434f797dfb5c91187.zip |
Fixed support for building with glibc >= 2.34.
This resolves issue #3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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) |