]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbind: alternatively use prama fini for destructors if supported
authorBjörn Jacke <bj@sernet.de>
Fri, 30 Oct 2020 11:59:06 +0000 (12:59 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 Nov 2020 08:17:53 +0000 (08:17 +0000)
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Nov 10 08:17:53 UTC 2020 on sn-devel-184

nsswitch/wb_common.c

index ba1138c454949f0e964d38ace3ff3c43e6688e9d..151c666cf530e519432a8f0fd1b2ce506cc36aec 100644 (file)
@@ -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)
 {