summaryrefslogtreecommitdiff
path: root/md5.c
diff options
context:
space:
mode:
authorJames Golovich <james@gnuinter.net>2004-03-26 08:37:51 +0000
committerJames Golovich <james@gnuinter.net>2004-03-26 08:37:51 +0000
commit4b4c55e32874a1d6f0868bf80f5462636711078f (patch)
treedade61017c2c8ac775685f7f627c88736eb33207 /md5.c
parent3ee43dd5727d74f620c538393e890d894284e6ce (diff)
Pick the right location to endian.h based on OS in md5.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'md5.c')
-rwxr-xr-xmd5.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/md5.c b/md5.c
index f132ffb3a..cbd9312a9 100755
--- a/md5.c
+++ b/md5.c
@@ -1,6 +1,12 @@
/* MD5 checksum routines used for authentication. Not covered by GPL, but
in the public domain as per the copyright below */
-#include <endian.h>
+#if defined( __FreeBSD__ ) || defined( __OpenBSD__ )
+# include <sys/endian.h>
+#elif defined( BSD ) && ( BSD >= 199103 )
+# include <machine/endian.h>
+#else
+# include <endian.h>
+#endif
# if __BYTE_ORDER == __BIG_ENDIAN || BYTE_ORDER == BIG_ENDIAN
# define HIGHFIRST 1
# endif