]> git.sur5r.net Git - openldap/commitdiff
load_extension was referenced unconditionally, but is only defined
authorHoward Chu <hyc@openldap.org>
Thu, 25 Nov 1999 10:07:14 +0000 (10:07 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 25 Nov 1999 10:07:14 +0000 (10:07 +0000)
in extended.c if SLAPD_EXTERNAL_EXTENSIONS is defined. Add #ifdef here.

servers/slapd/module.c

index 91d5b124e04c67c0858a4be1be61eeb9ca005279..c460736c153a8c90bc1c1ec56790f5927897124e 100644 (file)
@@ -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;