summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2011-01-05 23:58:37 +0000
committerDavid Woodhouse <David.Woodhouse@intel.com>2011-01-05 23:58:37 +0000
commit379120bf2593f7ff93e939239b2070444e996be3 (patch)
tree991fa4a57803e695b20b4d706fb3049cc9cdc752 /src
parente6d225ae6e6811d3c88dc201642a2127ff6c11bd (diff)
Include <dlfcn.h> only when necessary
Diffstat (limited to 'src')
-rw-r--r--src/src/drtables.c1
-rw-r--r--src/src/exim.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/src/drtables.c b/src/src/drtables.c
index 92b4878ca..276c0e67b 100644
--- a/src/src/drtables.c
+++ b/src/src/drtables.c
@@ -10,7 +10,6 @@
#include "exim.h"
-#include <dlfcn.h>
#include <string.h>
/* This module contains tables that define the lookup methods and drivers
diff --git a/src/src/exim.h b/src/src/exim.h
index 2c8a75c51..b9b2ab0eb 100644
--- a/src/src/exim.h
+++ b/src/src/exim.h
@@ -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