summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2012-05-03 19:20:43 -0700
committerPhil Pennock <pdp@exim.org>2012-05-03 19:20:43 -0700
commitfb2bba55d3916ab1d515f1a060f19009daf447ed (patch)
treed3d8e51c4caa8ba7f9ed0bf4f1696cbda1aa975c
parent0f5014860e54132a13e4ecc2f7f1859a9f3a971b (diff)
Guard loadable module vars with LOOKUP_MODULE_DIR.
Fixes compiler complaints about unused variables.
-rw-r--r--src/src/drtables.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/src/drtables.c b/src/src/drtables.c
index c87e9c23b..06f7e30ed 100644
--- a/src/src/drtables.c
+++ b/src/src/drtables.c
@@ -489,13 +489,15 @@ extern lookup_module_info cdb_lookup_module_info;
void init_lookup_list(void)
{
+#ifdef LOOKUP_MODULE_DIR
DIR *dd;
struct dirent *ent;
- const pcre *regex_islookupmod = regex_must_compile(
- US"\\." DYNLIB_FN_EXT "$", FALSE, TRUE);
int countmodules = 0;
int moduleerrors = 0;
+#endif
struct lookupmodulestr *p;
+ const pcre *regex_islookupmod = regex_must_compile(
+ US"\\." DYNLIB_FN_EXT "$", FALSE, TRUE);
if (lookup_list_init_done)
return;