aboutsummaryrefslogtreecommitdiffstats
path: root/md5.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-19 08:11:51 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-19 08:11:51 +0000
commitb149107c9accc399a704e20facc29d39de0cd187 (patch)
treeb8f24a2be248e5afeab4ddabbdc08fff7cafa3e7 /md5.c
parentd433c9e7c161e045eb757fa8063c093d89686da2 (diff)
OpenBSD portability enhancements (bug 1002)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2708 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'md5.c')
-rwxr-xr-xmd5.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/md5.c b/md5.c
index bdbb03ff7..abb277ac0 100755
--- a/md5.c
+++ b/md5.c
@@ -1,6 +1,10 @@
/* MD5 checksum routines used for authentication. Not covered by GPL, but
in the public domain as per the copyright below */
-#if defined( __FreeBSD__ ) || defined( __OpenBSD__ )
+#if defined( __OpenBSD__ )
+# include <machine/types.h>
+# include <sys/endian.h>
+#elif defined( __FreeBSD__ )
+# include <sys/types.h>
# include <sys/endian.h>
#elif defined( BSD ) && ( BSD >= 199103 )
# include <machine/endian.h>