aboutsummaryrefslogtreecommitdiff
path: root/jim-load.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim-load.c')
-rw-r--r--jim-load.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/jim-load.c b/jim-load.c
index 6fe3837..772ddce 100644
--- a/jim-load.c
+++ b/jim-load.c
@@ -5,9 +5,11 @@
* Dynamic libraries support (WIN32 not supported)
* ---------------------------------------------------------------------------*/
-#ifdef JIM_DYNLIB
+#if defined(HAVE_DLOPEN) || defined(HAVE_DLOPEN_COMPAT)
+#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
+#endif
int Jim_LoadLibrary(Jim_Interp *interp, const char *pathName)
{