diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-10-04 08:20:50 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-10-04 08:21:07 +0200 |
| commit | 0c55cd1aca19b57a9b8837d1672ae260cfca4d78 (patch) | |
| tree | a9f5b10b3ec558d7525f24037cafc86ce796d9e5 /src/Fl_x.cxx | |
| parent | 46598229a9605b25e3da5e0d7ad41343cf429497 (diff) | |
Create Fl_X11_System_Driver::dlopen_or_dlsym() for run-time addresses.
The intent is to gather in a single place of the X11 platform source code
all variable elements when using dlopen() and dlsym() system functions
(e.g., .so vs .dylib extension name, is RTLD_DEFAULT available, locations
to be sought).
Member function Fl_System_Driver::load() is created only to support
Fl_Plugin_Manager::load().
Diffstat (limited to 'src/Fl_x.cxx')
| -rw-r--r-- | src/Fl_x.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index a046cde65..947203679 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -699,8 +699,7 @@ void open_display_i(Display* d) { #endif #if USE_XRANDR - void *libxrandr_addr = dlopen("libXrandr.so.2", RTLD_LAZY); - if (!libxrandr_addr) libxrandr_addr = Fl::system_driver()->dlopen("libXrandr.so"); + void *libxrandr_addr = Fl_X11_System_Driver::dlopen_or_dlsym("libXrandr"); if (libxrandr_addr) { int error_base; typedef Bool (*XRRQueryExtension_type)(Display*, int*, int*); |
