From de0b39cfc27b3a07e03af6f47c4c7e6dcf184750 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 20 Nov 2009 20:40:41 +0100 Subject: in6_{pktinfo,mtuinfo}: provide type if IPV6 is on Disable some IPv6 header defines if IPv6 is off. Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/bits/in.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/common/bits/in.h b/libc/sysdeps/linux/common/bits/in.h index 6880a2e63..1f2b81793 100644 --- a/libc/sysdeps/linux/common/bits/in.h +++ b/libc/sysdeps/linux/common/bits/in.h @@ -101,6 +101,7 @@ struct in_pktinfo struct in_addr ipi_addr; /* Header destination address */ }; +#ifdef __UCLIBC_HAS_IPV6__ /* Options for use with `getsockopt' and `setsockopt' at the IPv6 level. The first word in the comment at the right is the data type used; "bool" means a boolean value stored in an `int'. */ @@ -168,3 +169,4 @@ struct in_pktinfo #define IPV6_RTHDR_STRICT 1 /* Hop must be a neighbour. */ #define IPV6_RTHDR_TYPE_0 0 /* IPv6 Routing header type 0. */ +#endif /* __UCLIBC_HAS_IPV6__ */ -- cgit v1.2.3