Protect against situation where HAVE_DLSYM && HAVE_DLFCN_H && !defined(RTLD_DEFAULT)

This commit is contained in:
ManoloFLTK 2020-01-30 18:49:34 +01:00
parent b45a18a231
commit fbf20b7225

View File

@ -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)