diff --git a/client/src/proxendian.h b/client/src/proxendian.h index 3a025b7ac..8501858e0 100644 --- a/client/src/proxendian.h +++ b/client/src/proxendian.h @@ -17,7 +17,11 @@ # define HOST_LITTLE_ENDIAN #else // Only some OSes include endian.h from sys/types.h, not Termux, so let's include endian.h directly -# include +# if defined(__APPLE__) +# include +# else +# include +# endif # if !defined(BYTE_ORDER) # if !defined(__BYTE_ORDER) || (__BYTE_ORDER != __LITTLE_ENDIAN && __BYTE_ORDER != __BIG_ENDIAN) # error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN