diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-01-27 17:34:56 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-01-27 17:34:56 +0100 |
| commit | 62cc0bba74b0ed9b3b9b56807840b1ffdf44a5eb (patch) | |
| tree | 22dc0108a5065947612e0d6742ee374c8e69eaf7 /src/drivers | |
| parent | 1e9e74224577fbb0389e11d11b361324ac696089 (diff) | |
Restore compilability when HAVE_DLFCN_H = 0
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Posix/Fl_Posix_System_Driver.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/drivers/Posix/Fl_Posix_System_Driver.cxx b/src/drivers/Posix/Fl_Posix_System_Driver.cxx index 6cf7bef55..0cb16e585 100644 --- a/src/drivers/Posix/Fl_Posix_System_Driver.cxx +++ b/src/drivers/Posix/Fl_Posix_System_Driver.cxx @@ -47,6 +47,7 @@ #endif /* !S_ISDIR */ +#if HAVE_DLFCN_H static void* double_dlopen(const char *filename1) { void *ptr = ::dlopen(filename1, RTLD_LAZY | RTLD_GLOBAL); @@ -57,12 +58,12 @@ static void* double_dlopen(const char *filename1) } return ptr; } - +#endif void *Fl_Posix_System_Driver::dlopen(const char *filename) { void *ptr = NULL; -#if HAVE_DLSYM +#if HAVE_DLFCN_H ptr = double_dlopen(filename); # ifdef __APPLE_CC__ // allows testing on Darwin + XQuartz + fink if (!ptr) { @@ -82,7 +83,7 @@ void *Fl_Posix_System_Driver::dlopen(const char *filename) free(f_dylib); } # endif // __APPLE_CC__ -#endif // HAVE_DLSYM +#endif // HAVE_DLFCN_H return ptr; } |
