diff options
-rw-r--r-- | config.h.post | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config.h.post b/config.h.post index 81662381..cee82aa1 100644 --- a/config.h.post +++ b/config.h.post @@ -16,8 +16,14 @@ #endif #ifndef HAVE_BETOH64 -#define betoh64(x) be64toh(x) +# if defined(__APPLE__) +# define betoh64(x) OSSwapBigToHostInt64(x) +# define htobe64(x) OSSwapHostToBigInt64(x) +# else +# define betoh64(x) be64toh(x) +# endif #endif + #ifndef HAVE_STRLCAT extern size_t strlcat(char *, const char *, size_t); #endif |