From e9a246744e8e66e546d37641ed71ec9ced7a984c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 25 Nov 1999 10:07:14 +0000 Subject: [PATCH] load_extension was referenced unconditionally, but is only defined in extended.c if SLAPD_EXTERNAL_EXTENSIONS is defined. Add #ifdef here. --- servers/slapd/module.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/servers/slapd/module.c b/servers/slapd/module.c index 91d5b124e0..c460736c15 100644 --- a/servers/slapd/module.c +++ b/servers/slapd/module.c @@ -14,10 +14,12 @@ struct module_regtable_t { char *type; int (*proc)(const void *module, const char *file_name); } module_regtable[] = { - { "null", load_null }, - { "extension", load_extension }, - { NULL, NULL } - }; + { "null", load_null }, +#ifdef SLAPD_EXTERNAL_EXTENSIONS + { "extension", load_extension }, +#endif + { NULL, NULL } +}; typedef struct module_loaded_t { struct module_loaded_t *next; -- 2.39.5