summaryrefslogtreecommitdiff
path: root/source4/auth/gensec/gensec_start.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth/gensec/gensec_start.c')
-rw-r--r--source4/auth/gensec/gensec_start.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/auth/gensec/gensec_start.c b/source4/auth/gensec/gensec_start.c
index d400685a49..3150cced97 100644
--- a/source4/auth/gensec/gensec_start.c
+++ b/source4/auth/gensec/gensec_start.c
@@ -928,8 +928,12 @@ _PUBLIC_ NTSTATUS gensec_init(void)
{
static bool initialized = false;
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
+#if _SAMBA_BUILD_ == 4
STATIC_gensec_MODULES_PROTO;
init_module_fn static_init[] = { STATIC_gensec_MODULES };
+#else
+ init_module_fn *static_init = NULL;
+#endif
init_module_fn *shared_init;
if (initialized) return NT_STATUS_OK;