2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 22:35:10 +00:00

Add configure check for struct in6_addr instead of relying on AF_INET6

since some systems define AF_INET6 but do not include IPv6 support.
This commit is contained in:
Todd C. Miller
2007-10-24 16:41:19 +00:00
parent c50e7d4c06
commit 0d22c2f98d
6 changed files with 93 additions and 18 deletions

View File

@@ -30,13 +30,13 @@ struct interface {
int family; /* AF_INET or AF_INET6 */
union {
struct in_addr ip4;
#ifdef AF_INET6
#ifdef HAVE_IN6_ADDR
struct in6_addr ip6;
#endif
} addr;
union {
struct in_addr ip4;
#ifdef AF_INET6
#ifdef HAVE_IN6_ADDR
struct in6_addr ip6;
#endif
} netmask;