# HG changeset patch # User Michael Pavone # Date 1602911587 25200 # Node ID a8e3e816a50dfd8797d1c13d29a4428f2a4e6174 # Parent f612c1bd2c8b8aa077255a77f56fdc876a0dc315 Fix build breakage on OS X diff -r f612c1bd2c8b -r a8e3e816a50d megawifi.c --- a/megawifi.c Fri Oct 16 22:12:48 2020 -0700 +++ b/megawifi.c Fri Oct 16 22:13:07 2020 -0700 @@ -21,7 +21,7 @@ #include "net.h" #include "util.h" -#ifdef _WIN32 +#if defined(_WIN32) || defined(__APPLE__) # if BYTE_ORDER == LITTLE_ENDIAN #define htobe64(val) ((((uint64_t)htonl((val)&0xFFFFFFFF))<<32) | htonl((val)>>32)) # else