summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2015-02-24 13:26:29 +1300
committerJeremy Allison <jra@samba.org>2015-10-09 20:14:06 +0200
commit1dc05386f20481596ee7360d6f4e628a16675d3f (patch)
tree3145de0a4c237250602e75504620635ea8dbf41d /nsswitch
parentf25a5c9e84e802bc7005d6bd400cbf784fb30fdf (diff)
downloadsamba-1dc05386f20481596ee7360d6f4e628a16675d3f.tar.gz
build: Move __attribute__ ((destructor)) and ((constructor)) tests to wafsamba
This allows us to use them in talloc as well. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wb_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/wb_common.c b/nsswitch/wb_common.c
index 139f0106669..da1a84476e8 100644
--- a/nsswitch/wb_common.c
+++ b/nsswitch/wb_common.c
@@ -88,7 +88,7 @@ static void winbind_close_sock(struct winbindd_context *ctx)
/* Destructor for global context to ensure fd is closed */
-#if HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR
+#if HAVE_DESTRUCTOR_ATTRIBUTE
__attribute__((destructor))
#endif
static void winbind_destructor(void)