diff options
| author | David 'Digit' Turner <digit@google.com> | 2010-12-14 14:42:52 +0100 |
|---|---|---|
| committer | David 'Digit' Turner <digit@google.com> | 2010-12-14 14:42:52 +0100 |
| commit | 9ddaf219fa051a1b2c1a3b713ea37a91204b378e (patch) | |
| tree | 941b34518bfa7911af06571c27f8efbc86d67899 /ndk | |
| parent | 90887627f185ea795fd8620bb916bd14a9f51041 (diff) | |
| download | android_development-9ddaf219fa051a1b2c1a3b713ea37a91204b378e.tar.gz android_development-9ddaf219fa051a1b2c1a3b713ea37a91204b378e.tar.bz2 android_development-9ddaf219fa051a1b2c1a3b713ea37a91204b378e.zip | |
Add missing declarations to <netinet/in.h>
These are required to properly build the Boost libraries with the
Android NDK.
Change-Id: Ice272f24b359ffce19838f5500641c4fcda8e57f
Diffstat (limited to 'ndk')
| -rw-r--r-- | ndk/platforms/android-3/include/netinet/in.h | 2 | ||||
| -rw-r--r-- | ndk/platforms/android-3/include/netinet/in6.h | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ndk/platforms/android-3/include/netinet/in.h b/ndk/platforms/android-3/include/netinet/in.h index 0ebd926fe..7a4b6c7b7 100644 --- a/ndk/platforms/android-3/include/netinet/in.h +++ b/ndk/platforms/android-3/include/netinet/in.h @@ -38,6 +38,8 @@ __BEGIN_DECLS #define IPPORT_RESERVED 1024 +#define INET_ADDRSTRLEN 16 + extern int bindresvport (int sd, struct sockaddr_in *sin); static const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT; diff --git a/ndk/platforms/android-3/include/netinet/in6.h b/ndk/platforms/android-3/include/netinet/in6.h index 2f5fee116..e756583e7 100644 --- a/ndk/platforms/android-3/include/netinet/in6.h +++ b/ndk/platforms/android-3/include/netinet/in6.h @@ -74,6 +74,9 @@ #define IPV6_ADDR_MC_SCOPE(a) \ ((a)->s6_addr[1] & 0x0f) +#define IN6_IS_ADDR_MC_NODELOCAL(a) \ + (IN6_IS_ADDR_MULTICAST(a) && \ + (IPV6_ADDR_MC_SCOPE(a) == IPV6_ADDR_SCOPE_NODELOCAL)) #define IN6_IS_ADDR_MC_LINKLOCAL(a) \ (IN6_IS_ADDR_MULTICAST(a) && \ (IPV6_ADDR_MC_SCOPE(a) == IPV6_ADDR_SCOPE_LINKLOCAL)) @@ -83,7 +86,9 @@ #define IN6_IS_ADDR_MC_ORGLOCAL(a) \ (IN6_IS_ADDR_MULTICAST(a) && \ (IPV6_ADDR_MC_SCOPE(a) == IPV6_ADDR_SCOPE_ORGLOCAL)) - +#define IN6_IS_ADDR_MC_GLOBAL(a) \ + (IN6_IS_ADDR_MULTICAST(a) && \ + (IPV6_ADDR_MC_SCOPE(a) == IPV6_ADDR_SCOPE_GLOBAL)) #define IN6_ARE_ADDR_EQUAL(a, b) \ (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0) |
