Include <dlfcn.h> only when necessary
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 5 Jan 2011 23:58:37 +0000 (23:58 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 5 Jan 2011 23:58:37 +0000 (23:58 +0000)
src/src/drtables.c
src/src/exim.h

index 92b4878caa597f3eb4e16c086971f7cfb4c492ea..276c0e67b87943424816ddd6d3db2e81d22a4d54 100644 (file)
@@ -10,7 +10,6 @@
 
 #include "exim.h"
 
-#include <dlfcn.h>
 #include <string.h>
 
 /* This module contains tables that define the lookup methods and drivers
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