From: Stefan Metzmacher Date: Thu, 7 Sep 2023 14:02:32 +0000 (+0200) Subject: nsswitch/wb_common.c: fix build without HAVE_PTHREAD X-Git-Tag: samba-4.18.7~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ebaac2afe94cf09599970962c66a7cc2761625c;p=thirdparty%2Fsamba.git nsswitch/wb_common.c: fix build without HAVE_PTHREAD BUG: https://bugzilla.samba.org/show_bug.cgi?id=15464 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison (cherry picked from commit 4faf806412c4408db25448b1f67c09359ec2f81f) --- diff --git a/nsswitch/wb_common.c b/nsswitch/wb_common.c index d569e761ebe..c382a44c120 100644 --- a/nsswitch/wb_common.c +++ b/nsswitch/wb_common.c @@ -104,7 +104,6 @@ static void wb_thread_ctx_initialize(void) wb_thread_ctx_destructor); assert(ret == 0); } -#endif static struct winbindd_context *get_wb_thread_ctx(void) { @@ -139,6 +138,7 @@ static struct winbindd_context *get_wb_thread_ctx(void) } return ctx; } +#endif /* HAVE_PTHREAD */ static struct winbindd_context *get_wb_global_ctx(void) {