about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/module.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/module.c b/Src/module.c
index 6b34f81b1..d8a01cce6 100644
--- a/Src/module.c
+++ b/Src/module.c
@@ -319,7 +319,11 @@ load_and_bind(const char *fn)
 #else
 
 #ifdef HAVE_DLFCN_H
+# ifdef HAVE_DL_H
+#  include <dl.h>
+# else
 # include <dlfcn.h>
+# endif
 #else
 # ifdef HAVE_DL_H
 #  include <dl.h>