Really don't authenticate if we're not supposed to authenticate (bug #1738)
[asterisk/asterisk.git] / aesopt.h
index 936ccd4..571b7c4 100755 (executable)
--- a/aesopt.h
+++ b/aesopt.h
 #elif defined( __FreeBSD__ )
 #  include <sys/types.h>
 #  include <sys/endian.h>
-#elif defined( BSD ) && ( BSD >= 199103 )
+#elif defined( BSD ) && ( BSD >= 199103 ) || defined(__APPLE__)
 #  include <machine/endian.h>
 #elif defined( __GNUC__ ) || defined( __GNU_LIBRARY__ )
 #  include <endian.h>
+#if !defined(__APPLE__)
 #  include <byteswap.h>
+#endif
 #elif defined( linux )
 #  include <endian.h>
 #endif