Index: lib/sndqueue.h
===================================================================
--- lib/sndqueue.h	(revision 515)
+++ lib/sndqueue.h	(working copy)
@@ -13,9 +13,12 @@
 
 #if defined(__linux__) 
 	#include <endian.h>
-#endif
-#if defined(__FreeBSD__)
+#elif defined(__APPLE__)
 	#include <machine/endian.h>
+	#define __BYTE_ORDER BYTE_ORDER
+	#define __LITTLE_ENDIAN LITTLE_ENDIAN
+#elif defined(__FreeBSD__)
+	#include <machine/endian.h>
 	#define __BYTE_ORDER _BYTE_ORDER
 	#define __LITTLE_ENDIAN _LITTLE_ENDIAN
 #endif
