summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-08-11 07:09:09 +0000
committerNick Mathewson <nickm@torproject.org>2006-08-11 07:09:09 +0000
commitb07525d316c6121d86bb8fa9664326f9b160604c (patch)
tree8b7f1dcd1f86e25629f191cf2226120a6b6794f8 /configure.in
parent02d42d91388d07e6bf1e49ce42bfe887f605fe33 (diff)
downloadtor-b07525d316c6121d86bb8fa9664326f9b160604c.tar.gz
tor-b07525d316c6121d86bb8fa9664326f9b160604c.zip
r7323@Kushana: nickm | 2006-08-10 22:04:57 -0700
Add sys/socket.h prereq for net/if.h and net/pfvar.h svn:r7019
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 4d17d3f7d7..8ee912849c 100644
--- a/configure.in
+++ b/configure.in
@@ -367,8 +367,14 @@ dnl These headers are not essential
AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h limits.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h stddef.h inttypes.h utime.h sys/utime.h sys/mman.h alloca.h)
-AC_CHECK_HEADERS(net/if.h, [net_if_found=1], [net_if_found=0])
-AC_CHECK_HEADERS(net/pfvar.h, [net_pfvar_found=1], [net_pfvar_found=0])
+AC_CHECK_HEADERS(net/if.h, [net_if_found=1], [net_if_found=0],
+[#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif])
+AC_CHECK_HEADERS(net/pfvar.h, [net_pfvar_found=1], [net_pfvar_found=0],
+[#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif])
AC_CHECK_HEADERS(linux/netfilter_ipv4.h,
[linux_netfilter_ipv4=1], [linux_netfilter_ipv4=0],
[#ifdef HAVE_SYS_SOCKET_H