From f23e53be88380f4dde772c5fd4c336271d01ebc4 Mon Sep 17 00:00:00 2001 From: citats Date: Fri, 26 Mar 2004 08:37:51 +0000 Subject: [PATCH] Pick the right location to endian.h based on OS in md5.c git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2570 f38db490-d61c-443f-a65b-d21fe96a405b --- md5.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 +#if defined( __FreeBSD__ ) || defined( __OpenBSD__ ) +# include +#elif defined( BSD ) && ( BSD >= 199103 ) +# include +#else +# include +#endif # if __BYTE_ORDER == __BIG_ENDIAN || BYTE_ORDER == BIG_ENDIAN # define HIGHFIRST 1 # endif