]> granicus.if.org Git - transmission/commitdiff
(win32) Add includes for natpmp
authorMukund Sivaraman <muks@mukund.org>
Fri, 5 Sep 2008 14:32:13 +0000 (14:32 +0000)
committerMukund Sivaraman <muks@mukund.org>
Fri, 5 Sep 2008 14:32:13 +0000 (14:32 +0000)
third-party/libnatpmp/getgateway.c
third-party/libnatpmp/natpmp.c

index ae6ea06a7121e1d53bd61252caa9ba025e57c069..7ce1d78ad36cc96355d84c9392778d56cf08ed00 100644 (file)
@@ -17,6 +17,9 @@
 #include <ctype.h>
 #ifndef WIN32
 #include <netinet/in.h>
+#else
+#include <winsock2.h>
+#include <ws2tcpip.h>
 #endif
 #include <sys/param.h>
 /* There is no portable method to get the default route gateway.
index f0374207009e5ec95b6a3604d3219eb03f070336..066804f46e171987576ebab90c1c925d9b48d7d9 100644 (file)
@@ -17,6 +17,7 @@
 #include <string.h>
 #include <time.h>
 #include <sys/time.h>
+#include <errno.h>
 #ifdef WIN32
 #include <winsock2.h>
 #include <ws2tcpip.h>