aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-10 14:50:49 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-10 14:50:49 -0400
commit6711a172c0b8cca96843c14d0721fd8b48034956 (patch)
treecf230f09668f9b5343915ffdb77669943872ee27 /src/lib
parent422abd4fa3c2c9c10f4e7f83eced7416785e89c4 (diff)
parent6d58c20d944b7b9056fc260f29452d2627b3e9f5 (diff)
downloadtor-6711a172c0b8cca96843c14d0721fd8b48034956.tar.gz
tor-6711a172c0b8cca96843c14d0721fd8b48034956.zip
Merge remote-tracking branch 'neel/fbsd-cfix'
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/net/inaddr_st.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/net/inaddr_st.h b/src/lib/net/inaddr_st.h
index cc72621e99..dc4c6e3a00 100644
--- a/src/lib/net/inaddr_st.h
+++ b/src/lib/net/inaddr_st.h
@@ -13,9 +13,21 @@
#ifndef TOR_INADDR_ST_H
#define TOR_INADDR_ST_H
+#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>