summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-11-20 20:40:41 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-11-25 10:17:38 +0100
commitde0b39cfc27b3a07e03af6f47c4c7e6dcf184750 (patch)
treecbf3cf99951f3703746e571235c505c789d44f85 /libc/sysdeps
parent00673f93826bf1fbde728d202c319a684bb87150 (diff)
in6_{pktinfo,mtuinfo}: provide type if IPV6 is on
Disable some IPv6 header defines if IPv6 is off. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/bits/in.h2
1 files changed, 2 insertions, 0 deletions
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__ */