Include <dlfcn.h> only when necessary
[exim.git] / src / src / exim.h
index 2c8a75c510ff95faa3165b8ff1e5fa29945a08c7..b9b2ab0eba65fe431dbbd3d66693e87fe804a3e4 100644 (file)
@@ -462,7 +462,7 @@ requires various things that are set therein. */
 #include <iconv.h>
 #endif
 
-#if defined(USE_READLINE) || defined(EXPAND_DLFUNC)
+#if defined(USE_READLINE) || defined(EXPAND_DLFUNC) || defined (LOOKUP_MODULE_DIR)
 #include <dlfcn.h>
 #endif