diff --git a/testing/hstox/byteswap.h b/testing/hstox/byteswap.h index fef558860c..58d9957047 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 a0fdfbd43d..3382327786 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"