Initial push
[termux-packages] / ndk_patches / in.h.patch
1 http://pubs.opengroup.org/onlinepubs/009695399/basedefs/netinet/in.h.html:
2
3 "The <netinet/in.h> header shall define the following types:
4 in_port_t
5 Equivalent to the type uint16_t as defined in <inttypes.h>"
6
7 diff -u -r /home/fornwall/lib/android-ndk/platforms/android-19/arch-arm/usr/include/netinet/in.h ./usr/include/netinet/in.h
8 --- /home/fornwall/lib/android-ndk/platforms/android-19/arch-arm/usr/include/netinet/in.h 2012-08-21 07:23:12.000000000 +0200
9 +++ ./usr/include/netinet/in.h 2014-07-06 04:31:37.563233271 +0200
10 @@ -41,6 +41,8 @@
11
12 #define INET_ADDRSTRLEN 16
13
14 +typedef uint16_t in_port_t;
15 +
16 extern int bindresvport (int sd, struct sockaddr_in *sin);
17
18 static const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;