summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2018-06-27 13:41:10 +1000
committerKarolin Seeger <kseeger@samba.org>2018-07-10 10:44:12 +0200
commitbf7ae2fb5d4bdd4d3110f28b96130f54fe98daa5 (patch)
tree1cabc43055d5b8a0d13465d3044fcfbe36c677e1 /lib
parent2819c0d9a3c7fa35ce272a0e7e06e7a1c9f7011b (diff)
downloadsamba-bf7ae2fb5d4bdd4d3110f28b96130f54fe98daa5.tar.gz
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 <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> (cherry picked from commit 7eeba9c5a4541e581b062fb9ee26f13b7373c541)
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript4
1 files changed, 4 insertions, 0 deletions
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')