From 0ebaac2afe94cf09599970962c66a7cc2761625c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 7 Sep 2023 16:02:32 +0200 Subject: [PATCH] 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) --- nsswitch/wb_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3