commit 8b5a4b94476a74865f11d4149ce617f7dd0dd308 Author: Nick Mathewson nickm@torproject.org Date: Thu Mar 7 10:49:30 2019 -0500
Uplift an openbsd patch from Kris Katterjohn --- lib/trunnel/data/trunnel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/trunnel/data/trunnel.c b/lib/trunnel/data/trunnel.c index 39258eb..b4abbbe 100644 --- a/lib/trunnel/data/trunnel.c +++ b/lib/trunnel/data/trunnel.c @@ -10,6 +10,10 @@ #include <stdlib.h> #include <string.h>
+#ifdef HAVE_SYS_PARAM_H +#include <sys/param.h> +#endif + #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && \ __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ # define IS_LITTLE_ENDIAN 1 @@ -27,7 +31,7 @@ # define IS_LITTLE_ENDIAN # endif #else -# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) +# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(OpenBSD) # include <sys/endian.h> # else # include <endian.h>
tor-commits@lists.torproject.org