Browse Source

Fix compilation of natpmp-helper on non-windows

Fixes a small oversight in 5dbfb1b3e0efc95be34ba7d69852511c9bac1f4b.
Sebastian Hahn 13 years ago
parent
commit
e4cebb76c5
2 changed files with 7 additions and 0 deletions
  1. 4 0
      changes/bug4691
  2. 3 0
      src/tools/tor-fw-helper/tor-fw-helper-natpmp.c

+ 4 - 0
changes/bug4691

@@ -0,0 +1,4 @@
+  o Major bugfixes:
+    - Fix compilation of the libnatpmp helper on non-Windows. Bugfix on
+      0.2.3.9-alpha; fixes bug 4691. Reported by Anthony G. Basile.
+

+ 3 - 0
src/tools/tor-fw-helper/tor-fw-helper-natpmp.c

@@ -16,6 +16,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
+#ifndef MS_WINDOWS
+#include <arpa/inet.h>
+#endif
 
 // debugging stuff
 #include <assert.h>