From 97901a761f12c011c09a80eea36817000d2f18f5 Mon Sep 17 00:00:00 2001 From: Jamie Fiedler Date: Wed, 13 May 2020 03:35:38 -0400 Subject: [PATCH] use machine/endian.h with osx --- client/src/proxendian.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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