[tor-commits] [obfsproxy/master] Patch from "wwaites" to build on freebsd

nickm at torproject.org nickm at torproject.org
Sat Feb 11 01:48:18 UTC 2012


commit 04805f75263fad4a841276b8a4114db3d99f36f8
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Feb 10 20:51:02 2012 -0500

    Patch from "wwaites" to build on freebsd
---
 configure.ac |    6 ++++++
 src/util.h   |   12 ++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index cb65863..38deb3d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,6 +17,12 @@ fi
 
 PKG_PROG_PKG_CONFIG
 
+### Headers ###
+
+AC_CHECK_HEADERS([sys/socket.h])
+AC_CHECK_HEADERS([sys/types.h])
+AC_CHECK_HEADERS([netinet/in.h])
+
 ### Libraries ###
 
 PKG_CHECK_MODULES([libevent], [libevent >= 2.0])
diff --git a/src/util.h b/src/util.h
index 91f7585..6f3318d 100644
--- a/src/util.h
+++ b/src/util.h
@@ -25,6 +25,18 @@
                          but it doesn't) */
 #endif
 
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
 struct bufferevent;
 struct evbuffer;
 struct evconnlistener;



More information about the tor-commits mailing list