Fix AES for MacOS build
[asterisk/asterisk.git] / aesopt.h
index 9919f6c..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>