summaryrefslogtreecommitdiff
path: root/src/lib/net
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2018-07-10 12:15:49 -0400
committerNeel Chauhan <neel@neelc.org>2018-07-10 12:32:14 -0400
commit6d58c20d944b7b9056fc260f29452d2627b3e9f5 (patch)
treeb6b07a73b1be9955ad7c0ca02deada797915519a /src/lib/net
parent3145e469d8d72ccc2a4e9317c83331df7cc29803 (diff)
downloadtor-6d58c20d944b7b9056fc260f29452d2627b3e9f5.tar.gz
tor-6d58c20d944b7b9056fc260f29452d2627b3e9f5.zip
Fix build on FreeBSD post-refactor
Diffstat (limited to 'src/lib/net')
-rw-r--r--src/lib/net/ipv6.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/net/ipv6.h b/src/lib/net/ipv6.h
index 0a12e046ac..fd3fc12ba0 100644
--- a/src/lib/net/ipv6.h
+++ b/src/lib/net/ipv6.h
@@ -8,9 +8,18 @@
#include "orconfig.h"
#include <stddef.h>
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>