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"