This patch is needed to make bcrc32 work on systems which don't define
__LITTLE_ENDIAN, like FreeBSD.
__Martin
index a7cb2af..847b140 100644
--- a/bacula/src/lib/crc32.c
+++ b/bacula/src/lib/crc32.c
@@ -360,7 +360,7 @@ tole(0xccb0a91fL), tole(0x740cce7aL), tole(0x66b96194L),
tole(0xde0506f1L)},
*/
uint32_t bcrc32(unsigned char*buf, int len)
{
-# ifdef __LITTLE_ENDIAN
+# ifdef HAVE_LITTLE_ENDIAN
# define DO_CRC(x) crc = tab[0][(crc ^ (x)) & 255 ] ^ (crc >> 8)
# define DO_CRC4 crc = tab[3][(crc) & 255 ] ^ \
tab[2][(crc >> 8) & 255 ] ^ \
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel