[Asterisk-cvs] asterisk md5.c,1.3,1.4

citats at lists.digium.com citats at lists.digium.com
Fri Mar 26 03:40:40 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv28702

Modified Files:
	md5.c 
Log Message:
Pick the right location to endian.h based on OS in md5.c


Index: md5.c
===================================================================
RCS file: /usr/cvsroot/asterisk/md5.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- md5.c	7 Mar 2004 04:36:52 -0000	1.3
+++ md5.c	26 Mar 2004 08:37:51 -0000	1.4
@@ -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




More information about the svn-commits mailing list