From 0c55cd1aca19b57a9b8837d1672ae260cfca4d78 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 4 Oct 2020 08:20:50 +0200 Subject: 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(). --- src/drivers/Posix/Fl_Posix_System_Driver.H | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/drivers/Posix/Fl_Posix_System_Driver.H') 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(); -- cgit v1.2.3