]> git.sur5r.net Git - openldap/commitdiff
Fix dynamic module init
authorHoward Chu <hyc@openldap.org>
Tue, 26 Aug 2008 22:25:35 +0000 (22:25 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 26 Aug 2008 22:25:35 +0000 (22:25 +0000)
servers/slapd/back-ndb/init.cpp

index 53307646671ec500b96c27571b40713821a50ce1..77e4d13f23b1b55c86ddbf0ee38903b3647dae14 100644 (file)
@@ -443,6 +443,8 @@ ndb_back_initialize(
 #if    SLAPD_NDB == SLAPD_MOD_DYNAMIC
 
 /* conditionally define the init_module() function */
+extern "C" { int init_module( int argc, char *argv[] ); }
+
 SLAP_BACKEND_INIT_MODULE( ndb )
 
 #endif /* SLAPD_NDB == SLAPD_MOD_DYNAMIC */