summaryrefslogtreecommitdiff
path: root/crc32.c
diff options
context:
space:
mode:
authorRené J.V. Bertin <rjvbertin@gmail.com>2015-06-09 23:59:15 +0200
committerHans Kristian Rosbach <hk-git@circlestorm.org>2015-06-10 21:16:13 +0200
commit9a7f5077d4e7eba6c3523ae004158d6f6c98cc4f (patch)
tree829c35b21f6672b628cf54c10fd20fbe10607fb8 /crc32.c
parent92d1a832256c2900ba7137c2487878e6a3b7b523 (diff)
Allow building on OS X
Diffstat (limited to 'crc32.c')
-rw-r--r--crc32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crc32.c b/crc32.c
index 34343b2..76f7a8a 100644
--- a/crc32.c
+++ b/crc32.c
@@ -21,6 +21,8 @@
# else
# error Unknown endianness!
# endif
+#elif __APPLE__
+# include <machine/endian.h>
#else
# include <endian.h>
#endif