Sfoglia il codice sorgente

Fix compilation of natpmp-helper on non-windows

Fixes a small oversight in 5dbfb1b3e0efc95be34ba7d69852511c9bac1f4b.
Sebastian Hahn 14 anni fa
parent
commit
e4cebb76c5
2 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  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>