chiark / gitweb /
vim: Use sensible.vim as system vimrc
[termux-packages] / packages / transmission / arpa_inet_h.patch
1 diff -u -r ../transmission-2.82/third-party/libnatpmp/getgateway.h ./third-party/libnatpmp/getgateway.h
2 --- ../transmission-2.82/third-party/libnatpmp/getgateway.h     2013-08-09 04:47:55.000000000 +0200
3 +++ ./third-party/libnatpmp/getgateway.h        2014-01-28 23:57:43.000000000 +0100
4 @@ -40,6 +40,8 @@
5  #endif
6  #include "declspec.h"
7  
8 +#include <arpa/inet.h>
9 +
10  /* getdefaultgateway() :
11   * return value :
12   *    0 : success
13 diff -u -r ../transmission-2.82/third-party/libnatpmp/natpmp.c ./third-party/libnatpmp/natpmp.c
14 --- ../transmission-2.82/third-party/libnatpmp/natpmp.c 2013-08-09 04:47:55.000000000 +0200
15 +++ ./third-party/libnatpmp/natpmp.c    2014-01-28 23:56:20.000000000 +0100
16 @@ -53,6 +53,8 @@
17  #include "natpmp.h"
18  #include "getgateway.h"
19  
20 +#include <arpa/inet.h>
21 +
22  LIBSPEC int initnatpmp(natpmp_t * p, int forcegw, in_addr_t forcedgw)
23  {
24  #ifdef WIN32
25 diff -u -r ../transmission-2.82/third-party/libnatpmp/natpmp.h ./third-party/libnatpmp/natpmp.h
26 --- ../transmission-2.82/third-party/libnatpmp/natpmp.h 2013-08-09 04:47:55.000000000 +0200
27 +++ ./third-party/libnatpmp/natpmp.h    2014-01-28 23:58:05.000000000 +0100
28 @@ -51,6 +51,8 @@
29  #include <netinet/in.h>
30  #endif
31  
32 +#include <arpa/inet.h>
33 +
34  typedef struct {
35         int s;  /* socket */
36         in_addr_t gateway;      /* default gateway (IPv4) */