From 23e38f198086abf4ad6fa566b03131eaef7a69b5 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 4 Oct 2011 16:56:09 +0000 Subject: Exploit the HAVE_DLSYM and HAVE_DLFCN_H preprocessor variables defined by configure to control usage of dlopen/dlsym system calls. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_x.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3