You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
diff -u -r ../transmission-2.82/third-party/libnatpmp/getgateway.h ./third-party/libnatpmp/getgateway.h
|
|
--- ../transmission-2.82/third-party/libnatpmp/getgateway.h 2013-08-09 04:47:55.000000000 +0200
|
|
+++ ./third-party/libnatpmp/getgateway.h 2014-01-28 23:57:43.000000000 +0100
|
|
@@ -40,6 +40,8 @@
|
|
#endif
|
|
#include "declspec.h"
|
|
|
|
+#include <arpa/inet.h>
|
|
+
|
|
/* getdefaultgateway() :
|
|
* return value :
|
|
* 0 : success
|
|
diff -u -r ../transmission-2.82/third-party/libnatpmp/natpmp.c ./third-party/libnatpmp/natpmp.c
|
|
--- ../transmission-2.82/third-party/libnatpmp/natpmp.c 2013-08-09 04:47:55.000000000 +0200
|
|
+++ ./third-party/libnatpmp/natpmp.c 2014-01-28 23:56:20.000000000 +0100
|
|
@@ -53,6 +53,8 @@
|
|
#include "natpmp.h"
|
|
#include "getgateway.h"
|
|
|
|
+#include <arpa/inet.h>
|
|
+
|
|
LIBSPEC int initnatpmp(natpmp_t * p, int forcegw, in_addr_t forcedgw)
|
|
{
|
|
#ifdef WIN32
|
|
diff -u -r ../transmission-2.82/third-party/libnatpmp/natpmp.h ./third-party/libnatpmp/natpmp.h
|
|
--- ../transmission-2.82/third-party/libnatpmp/natpmp.h 2013-08-09 04:47:55.000000000 +0200
|
|
+++ ./third-party/libnatpmp/natpmp.h 2014-01-28 23:58:05.000000000 +0100
|
|
@@ -51,6 +51,8 @@
|
|
#include <netinet/in.h>
|
|
#endif
|
|
|
|
+#include <arpa/inet.h>
|
|
+
|
|
typedef struct {
|
|
int s; /* socket */
|
|
in_addr_t gateway; /* default gateway (IPv4) */
|
|
|