From: Howard Chu Date: Tue, 26 Aug 2008 22:25:35 +0000 (+0000) Subject: Fix dynamic module init X-Git-Tag: ACLCHECK_0~1411 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8385813a5af57536809ca9d0ed7a745bc44c0bc2;p=openldap Fix dynamic module init --- diff --git a/servers/slapd/back-ndb/init.cpp b/servers/slapd/back-ndb/init.cpp index 5330764667..77e4d13f23 100644 --- a/servers/slapd/back-ndb/init.cpp +++ b/servers/slapd/back-ndb/init.cpp @@ -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 */