nsswitch/wb_common.c: fix build without HAVE_PTHREAD
authorStefan Metzmacher <metze@samba.org>
Thu, 7 Sep 2023 14:02:32 +0000 (16:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Sep 2023 17:56:30 +0000 (17:56 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15464

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
nsswitch/wb_common.c

index d569e761ebe4a0193124e49446042a7f793d1952..c382a44c1209f48442c71e5338845f25ef43d130 100644 (file)
@@ -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)
 {