aboutsummaryrefslogtreecommitdiff
path: root/src/tools/tor-fw-helper/tor-fw-helper-upnp.c
diff options
context:
space:
mode:
authorSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2011-08-19 14:47:44 +0100
committerSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2011-08-19 15:22:13 +0100
commit2ad336f999781db211d92332e657398829c8799c (patch)
tree69c1bb7c9c2739cd0794f0c5b77f2db3aa860591 /src/tools/tor-fw-helper/tor-fw-helper-upnp.c
parentdf96aed14f67c9ffc2c4908add7079a0424d7cbb (diff)
downloadtor-2ad336f999781db211d92332e657398829c8799c.tar.gz
tor-2ad336f999781db211d92332e657398829c8799c.zip
Link and build tor-fw-helper on Windows
- Update configure script to test for libminiupnpc along with the libws2_32 and libiphlpapi libraries required by libminiupnpc - When building tor-fw-helper, link in libiphlpapi - Link in libminiupnpc statically becasue I could not get the DLL to link properly - Call WSAStartup before doing network operations - Fix up a compiler warning about uninitialized backend_state N.B. The changes to configure.in and Makefile.am will break on non- Windows platforms.
Diffstat (limited to 'src/tools/tor-fw-helper/tor-fw-helper-upnp.c')
-rw-r--r--src/tools/tor-fw-helper/tor-fw-helper-upnp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/tor-fw-helper/tor-fw-helper-upnp.c b/src/tools/tor-fw-helper/tor-fw-helper-upnp.c
index 18ca56394f..c4b14a84e2 100644
--- a/src/tools/tor-fw-helper/tor-fw-helper-upnp.c
+++ b/src/tools/tor-fw-helper/tor-fw-helper-upnp.c
@@ -9,6 +9,9 @@
#include "orconfig.h"
#ifdef MINIUPNPC
+#ifdef MS_WINDOWS
+#define STATICLIB
+#endif
#include <stdint.h>
#include <string.h>
#include <stdio.h>