diff options
| author | Manolo Gouy <Manolo> | 2011-10-04 16:56:09 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-10-04 16:56:09 +0000 |
| commit | 23e38f198086abf4ad6fa566b03131eaef7a69b5 (patch) | |
| tree | 6012476d4f079e9f7450aace2ad7d0de051cad8e /src | |
| parent | 32cbe8ffb05ba34fff6c79ea042153edf81ccaf8 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 <X11/Xlocale.h> # include <X11/Xlib.h> # include <X11/keysym.h> -#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 <dlfcn.h> #define RRScreenChangeNotifyMask (1L << 0) // from X11/extensions/Xrandr.h |
