aboutsummaryrefslogtreecommitdiff
path: root/addrconf.c
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2006-12-04 15:18:39 +0000
committerBjørn Mork <bjorn@mork.no>2010-08-06 15:37:36 +0200
commitb73261b6f5f0dbb2c0fee2c52278dfbd0ee4aba3 (patch)
tree76254482d4374ed22b5785a9a70bd10045c390fd /addrconf.c
parent11a1e58f11dfef67d01aebf89232f93f12207bc0 (diff)
introduced a HAVE_SA_LEN macro to support OSes (other than linux) without length field in sockaddr_*
Diffstat (limited to 'addrconf.c')
-rw-r--r--addrconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addrconf.c b/addrconf.c
index c8e0fc9..dfc560e 100644
--- a/addrconf.c
+++ b/addrconf.c
@@ -383,7 +383,7 @@ na_ifaddrconf(cmd, sa)
addr = &sa->addr;
memset(&sin6, 0, sizeof(sin6));
sin6.sin6_family = AF_INET6;
-#ifndef __linux__
+#ifdef HAVE_SA_LEN
sin6.sin6_len = sizeof(sin6);
#endif
sin6.sin6_addr = addr->addr;