From bf7ae2fb5d4bdd4d3110f28b96130f54fe98daa5 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Wed, 27 Jun 2018 13:41:10 +1000 Subject: [PATCH] replace: Add test for sin6_len in sockaddr_in6 structure BUG: https://bugzilla.samba.org/show_bug.cgi?id=13493 Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke (cherry picked from commit 7eeba9c5a4541e581b062fb9ee26f13b7373c541) --- lib/replace/wscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/replace/wscript b/lib/replace/wscript index 0e04bf7e121..6c7de5953f0 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -632,6 +632,10 @@ removeea setea headers='sys/socket.h netinet/in.h', define='HAVE_SOCK_SIN_LEN') + conf.CHECK_STRUCTURE_MEMBER('struct sockaddr_in6', 'sin6_len', + headers='sys/socket.h netinet/in.h', + define='HAVE_SOCK_SIN6_LEN') + conf.CHECK_CODE('struct sockaddr_un sunaddr; sunaddr.sun_family = AF_UNIX;', define='HAVE_UNIXSOCKET', headers='sys/socket.h sys/un.h') -- 2.47.2