diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 3e3e24517..86cb3cafa 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -43,7 +43,7 @@ # include # include # include -#define USE_XRANDR 1 // means attempt to dynamically load libXrandr.so +#define USE_XRANDR (HAVE_DLSYM && HAVE_DLFCN_H) // means attempt to dynamically load libXrandr.so #if USE_XRANDR #include #define RRScreenChangeNotifyMask (1L << 0) // from X11/extensions/Xrandr.h