mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] Changes to mldonkey/src/utils/lib/sha1_c.c


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/utils/lib/sha1_c.c
Date: Sat, 10 Dec 2005 11:53:41 -0500

Index: mldonkey/src/utils/lib/sha1_c.c
diff -u mldonkey/src/utils/lib/sha1_c.c:1.7 mldonkey/src/utils/lib/sha1_c.c:1.8
--- mldonkey/src/utils/lib/sha1_c.c:1.7 Wed Nov 30 23:46:25 2005
+++ mldonkey/src/utils/lib/sha1_c.c     Sat Dec 10 16:53:40 2005
@@ -62,6 +62,19 @@
 #  include <byteswap.h>
 #endif
 
+#if defined(HAVE_SYS_PARAM_H) || ((defined(__unix__) || defined(unix)) && 
!defined(USG))
+#include <sys/param.h>
+#endif
+
+#if defined(__FreeBSD__) && __FreeBSD_version >= 470000
+# include <sys/endian.h>
+# if (__FreeBSD_version >= 500000)
+#  define bswap_32(x) (bswap32(x))
+# else
+#  define bswap_32(x) (be32toh(x))
+# endif
+#endif
+
 #define BRG_LITTLE_ENDIAN   1234 /* byte 0 is least significant (i386) */
 #define BRG_BIG_ENDIAN      4321 /* byte 0 is most significant (mc68k) */
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]