From: Nick Mathewson Date: Wed, 25 Nov 2015 14:27:52 +0000 (-0500) Subject: Include netinet/in.h (if detected) in check for net/pfvar.h X-Git-Tag: tor-0.2.8.1-alpha~216^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=232ccc18c40f0d0302b2e21b0f67885c548f8e63;p=thirdparty%2Ftor.git Include netinet/in.h (if detected) in check for net/pfvar.h Patch from rubiate; fixes bug 17551. --- diff --git a/changes/bug17551 b/changes/bug17551 new file mode 100644 index 0000000000..27e467979e --- /dev/null +++ b/changes/bug17551 @@ -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". diff --git a/configure.ac b/configure.ac index 06d03ae5c6..3236a812f3 100644 --- a/configure.ac +++ b/configure.ac @@ -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 +#endif +#ifdef HAVE_NETINET_IN_H +#include #endif]) AC_CHECK_HEADERS(linux/if.h,[],[],