From: Björn Jacke Date: Fri, 30 Oct 2020 11:59:06 +0000 (+0100) Subject: winbind: alternatively use prama fini for destructors if supported X-Git-Tag: talloc-2.3.2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18fdfe8c10291e04b6a54499d74a6ee15652f5db;p=thirdparty%2Fsamba.git winbind: alternatively use prama fini for destructors if supported Signed-off-by: Bjoern Jacke Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Tue Nov 10 08:17:53 UTC 2020 on sn-devel-184 --- diff --git a/nsswitch/wb_common.c b/nsswitch/wb_common.c index ba1138c4549..151c666cf53 100644 --- a/nsswitch/wb_common.c +++ b/nsswitch/wb_common.c @@ -151,6 +151,8 @@ static void winbind_close_sock(struct winbindd_context *ctx) #ifdef HAVE_DESTRUCTOR_ATTRIBUTE __attribute__((destructor)) +#elif defined (HAVE_PRAGMA_FINI) +#pragma fini (winbind_destructor) #endif static void winbind_destructor(void) {