]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Include netinet/in.h (if detected) in check for net/pfvar.h
authorNick Mathewson <nickm@torproject.org>
Wed, 25 Nov 2015 14:27:52 +0000 (09:27 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 25 Nov 2015 14:27:52 +0000 (09:27 -0500)
Patch from rubiate; fixes bug 17551.

changes/bug17551 [new file with mode: 0644]
configure.ac

diff --git a/changes/bug17551 b/changes/bug17551
new file mode 100644 (file)
index 0000000..27e4679
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (compilation):
+    - When checking for net/pfvar.h, include netinet/in.h if possible.
+      This fixes transparent proxy detection on OpenBSD. Fixes bug
+      17551; bugfix on 0.1.2.1-alpha. Patch from "rubiate".
index 06d03ae5c6236d323f0c0c3d31f4b38994c8feed..3236a812f3bcc66df5a3b03e794219a800df821e 100644 (file)
@@ -971,6 +971,9 @@ AC_CHECK_HEADERS(net/pfvar.h, net_pfvar_found=1, net_pfvar_found=0,
 #endif
 #ifdef HAVE_NET_IF_H
 #include <net/if.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
 #endif])
 
 AC_CHECK_HEADERS(linux/if.h,[],[],