summaryrefslogtreecommitdiff
path: root/src/drivers/X11
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-01-30 18:49:34 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-01-30 18:49:34 +0100
commitfbf20b7225ffc51a7d5d046330852762bab2c1b2 (patch)
tree330528b4f9fc9c3e7e588d5f0e5d92c5645676f5 /src/drivers/X11
parentb45a18a2318695631cea0bdbd2d3484b76d81b31 (diff)
Protect against situation where HAVE_DLSYM && HAVE_DLFCN_H && !defined(RTLD_DEFAULT)
Diffstat (limited to 'src/drivers/X11')
-rw-r--r--src/drivers/X11/Fl_X11_System_Driver.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/X11/Fl_X11_System_Driver.cxx b/src/drivers/X11/Fl_X11_System_Driver.cxx
index 79193a04d..4914c1a29 100644
--- a/src/drivers/X11/Fl_X11_System_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_System_Driver.cxx
@@ -536,6 +536,8 @@ int Fl_X11_System_Driver::utf8locale() {
#if HAVE_DLSYM && HAVE_DLFCN_H
#include <dlfcn.h> // for dlopen et al
+#endif
+#if HAVE_DLSYM && HAVE_DLFCN_H && defined(RTLD_DEFAULT)
bool Fl_X11_System_Driver::probe_for_GTK(int major, int minor, void **ptr_gtk) {
typedef void (*init_t)(int*, void*);
@@ -592,7 +594,7 @@ bool Fl_X11_System_Driver::probe_for_GTK(int major, int minor, void **ptr_gtk) {
}
return true;
}
-#endif // HAVE_DLSYM && HAVE_DLFCN_H
+#endif // HAVE_DLSYM && HAVE_DLFCN_H && defined(RTLD_DEFAULT)
#if !defined(FL_DOXYGEN)