diff options
author | SUZUKI, Shinsuke <suz@kame.net> | 2006-12-04 15:18:39 +0000 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2010-08-06 15:37:36 +0200 |
commit | b73261b6f5f0dbb2c0fee2c52278dfbd0ee4aba3 (patch) | |
tree | 76254482d4374ed22b5785a9a70bd10045c390fd /addrconf.c | |
parent | 11a1e58f11dfef67d01aebf89232f93f12207bc0 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |