From 625a261a530cc273fba062ac59fd6b6ca9ddc8ad Mon Sep 17 00:00:00 2001
From: Nick Mathewson <nickm@torproject.org>
Date: Tue, 17 Nov 2009 02:40:14 +0000
Subject: [PATCH] OpenBSD demands that sys/types.h be included before
 sys/socket.h

svn:r1539
---
 sample/dns-example.c    | 2 ++
 test/regress_listener.c | 2 ++
 test/regress_main.c     | 1 +
 test/regress_util.c     | 2 ++
 4 files changed, 7 insertions(+)

diff --git a/sample/dns-example.c b/sample/dns-example.c
index fda7def0..c5ecf7f6 100644
--- a/sample/dns-example.c
+++ b/sample/dns-example.c
@@ -1,6 +1,8 @@
 
 #include <event-config.h>
 
+#include <sys/types.h>
+
 #ifdef WIN32
 #include <winsock2.h>
 #include <ws2tcpip.h>
diff --git a/test/regress_listener.c b/test/regress_listener.c
index 14e7a2b5..87269f4a 100644
--- a/test/regress_listener.c
+++ b/test/regress_listener.c
@@ -29,6 +29,8 @@
 #include <windows.h>
 #endif
 
+#include <sys/types.h>
+
 #ifndef WIN32
 #include <sys/socket.h>
 #include <netinet/in.h>
diff --git a/test/regress_main.c b/test/regress_main.c
index c0260504..fab48c1e 100644
--- a/test/regress_main.c
+++ b/test/regress_main.c
@@ -48,6 +48,7 @@
 #include <errno.h>
 #endif
 
+#include <sys/types.h>
 
 #ifndef WIN32
 #include <sys/socket.h>
diff --git a/test/regress_util.c b/test/regress_util.c
index e474a34a..2476d7c0 100644
--- a/test/regress_util.c
+++ b/test/regress_util.c
@@ -31,6 +31,8 @@
 
 #include "event-config.h"
 
+#include <sys/types.h>
+
 #ifndef WIN32
 #include <sys/socket.h>
 #include <netinet/in.h>
-- 
2.40.0