From 83377e6865dcf8aaf3652fde3d70d73c2a48b2cb Mon Sep 17 00:00:00 2001 From: endoffile78 Date: Thu, 28 Dec 2017 10:12:33 -0600 Subject: [PATCH] Fix include for endian.h and add includes for sys/stat.h and netinet/in.h --- testing/hstox/byteswap.h | 4 +++- testing/hstox/driver.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/hstox/byteswap.h b/testing/hstox/byteswap.h index fef55886..58d99570 100644 --- a/testing/hstox/byteswap.h +++ b/testing/hstox/byteswap.h @@ -1,8 +1,10 @@ -#ifdef __APPLE__ +#if defined(__APPLE__) #include #define htobe64(x) OSSwapHostToBigInt64(x) #define be64toh(x) OSSwapBigToHostInt64(x) +#elif defined (__FreeBSD__) +#include #else #include #endif diff --git a/testing/hstox/driver.c b/testing/hstox/driver.c index a0fdfbd4..33823277 100644 --- a/testing/hstox/driver.c +++ b/testing/hstox/driver.c @@ -7,8 +7,10 @@ #include #include #include +#include #include #include +#include #include #include "driver.h"