[exim-cvs] Include <dlfcn.h> only when necessary

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Exim Git Commits Mailing List
Date:  
À: exim-cvs
Sujet: [exim-cvs] Include <dlfcn.h> only when necessary
Gitweb: http://git.exim.org/exim.git/commitdiff/379120bf2593f7ff93e939239b2070444e996be3
Commit:     379120bf2593f7ff93e939239b2070444e996be3
Parent:     e6d225ae6e6811d3c88dc201642a2127ff6c11bd
Author:     David Woodhouse <David.Woodhouse@???>
AuthorDate: Wed Jan 5 23:58:37 2011 +0000
Committer:  David Woodhouse <David.Woodhouse@???>
CommitDate: Wed Jan 5 23:58:37 2011 +0000


    Include <dlfcn.h> only when necessary
---
 src/src/drtables.c |    1 -
 src/src/exim.h     |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/src/src/drtables.c b/src/src/drtables.c
index 92b4878..276c0e6 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 2c8a75c..b9b2ab0 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