Fix AES for MacOS build
authorMark Spencer <markster@digium.com>
Mon, 24 May 2004 20:09:05 +0000 (20:09 +0000)
committerMark Spencer <markster@digium.com>
Mon, 24 May 2004 20:09:05 +0000 (20:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3061 65c4cc65-6c06-0410-ace0-fbb531ad65f3

aesopt.h
md5.c

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>
diff --git a/md5.c b/md5.c
index abb277a..9388a82 100755 (executable)
--- a/md5.c
+++ b/md5.c
@@ -6,7 +6,7 @@
 #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>
 #else
 #  include <endian.h>