From: Amitay Isaacs Date: Wed, 27 Jun 2018 03:41:10 +0000 (+1000) Subject: replace: Add test for sin6_len in sockaddr_in6 structure X-Git-Tag: ldb-1.3.6~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf7ae2fb5d4bdd4d3110f28b96130f54fe98daa5;p=thirdparty%2Fsamba.git 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) --- 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')