aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xaesopt.h2
-rwxr-xr-xmd5.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/aesopt.h b/aesopt.h
index 9919f6c50..571b7c452 100755
--- a/aesopt.h
+++ b/aesopt.h
@@ -154,7 +154,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>
#elif defined( __GNUC__ ) || defined( __GNU_LIBRARY__ )
# include <endian.h>
diff --git a/md5.c b/md5.c
index abb277ac0..9388a820e 100755
--- 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>