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