diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-03 12:35:29 +0100 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-03 18:22:52 +0100 |
commit | b776a692f8cc95c03853fcaf43833f9477ad8c36 (patch) | |
tree | e4a5ef1946f63b51078f8f2dbe9e8fbc27c2a33c /include/netinet/in.h | |
parent | cb4625abd32512d02d18be7b6e173ec2d7877c17 (diff) |
better guard of IPV6 related stuff
Function prototypes are visible whenever IPV6 option is enabled.
Structures and constants are visible either if IPV6 is enabled
or STRICT_HEADERS is disabled.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Diffstat (limited to 'include/netinet/in.h')
-rw-r--r-- | include/netinet/in.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/netinet/in.h b/include/netinet/in.h index ce5afa513..b42121ae3 100644 --- a/include/netinet/in.h +++ b/include/netinet/in.h @@ -213,15 +213,18 @@ struct in6_addr #endif }; -extern const struct in6_addr in6addr_any; /* :: */ -extern const struct in6_addr in6addr_loopback; /* ::1 */ -libc_hidden_proto(in6addr_loopback) #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } #define INET6_ADDRSTRLEN 46 #endif +#ifdef __UCLIBC_HAS_IPV6__ +extern const struct in6_addr in6addr_any; /* :: */ +extern const struct in6_addr in6addr_loopback; /* ::1 */ +libc_hidden_proto(in6addr_loopback) +#endif + #define INET_ADDRSTRLEN 16 |