[Asterisk-cvs] asterisk md5.c,1.2.2.1,1.2.2.2

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


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

Modified Files:
      Tag: v1-0_stable
	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.2.2.1
retrieving revision 1.2.2.2
diff -u -d -r1.2.2.1 -r1.2.2.2
--- md5.c	7 Mar 2004 04:36:32 -0000	1.2.2.1
+++ md5.c	26 Mar 2004 08:38:03 -0000	1.2.2.2
@@ -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