libhdf5: add package
[termux-packages] / packages / libgnutls / socket.c.patch
1 Include <arpa/inet.h> for htons() and ntohs().
2
3 Should be the portable solution specified by man pages.
4
5 diff -u -r ../gnutls-3.3.8/src/socket.c ./src/socket.c
6 --- ../gnutls-3.3.8/src/socket.c 2014-08-23 07:19:59.000000000 +0200
7 +++ ./src/socket.c 2014-09-19 22:48:54.148437077 +0200
8 @@ -46,6 +46,7 @@
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <unistd.h>
12 +#include <arpa/inet.h>
13 #ifndef _WIN32
14 #include <signal.h>
15 #endif