[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 04805f75263fad4a841276b8a4114db3d99f36f8
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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;

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits