summaryrefslogtreecommitdiff
path: root/src/drivers/Posix/Fl_Posix_System_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-10-04 08:20:50 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-10-04 08:21:07 +0200
commit0c55cd1aca19b57a9b8837d1672ae260cfca4d78 (patch)
treea9f5b10b3ec558d7525f24037cafc86ce796d9e5 /src/drivers/Posix/Fl_Posix_System_Driver.H
parent46598229a9605b25e3da5e0d7ad41343cf429497 (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/drivers/Posix/Fl_Posix_System_Driver.H')
-rw-r--r--src/drivers/Posix/Fl_Posix_System_Driver.H4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/Posix/Fl_Posix_System_Driver.H b/src/drivers/Posix/Fl_Posix_System_Driver.H
index 3f4cf72c8..3de26e5aa 100644
--- a/src/drivers/Posix/Fl_Posix_System_Driver.H
+++ b/src/drivers/Posix/Fl_Posix_System_Driver.H
@@ -65,7 +65,9 @@ public:
virtual int rename(const char* f, const char *n) {return ::rename(f, n);}
virtual const char *getpwnam(const char *login);
virtual int need_menu_handle_part2() {return 1;}
- virtual void *dlopen(const char *filename);
+#if HAVE_DLFCN_H
+ virtual void *load(const char *filename);
+#endif
// these 4 are implemented in Fl_lock.cxx
virtual void awake(void*);
virtual int lock();