From 001dfc58067f9b454752a175eb86e4fb0ca4a890 Mon Sep 17 00:00:00 2001 From: Forrest L Norvell Date: Wed, 29 May 2013 18:24:20 -0700 Subject: [PATCH] Darwin uses architecture/byte_order.h, not bitfn.h. --- bitfn.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bitfn.h b/bitfn.h index 2edc72f..525043b 100644 --- a/bitfn.h +++ b/bitfn.h @@ -65,7 +65,12 @@ static inline uint64_t swap64(uint64_t a) #endif /* big endian to cpu */ +#ifdef __APPLE__ +#include +#else #include +#endif + #if LITTLE_ENDIAN == BYTE_ORDER #define be32_to_cpu(a) swap32(a) #define cpu_to_be32(a) swap32(a)