1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 01:37:20 +00:00

failing hashindex tests on netbsd, fixes #804

This commit is contained in:
Alexander Pyhalov 2016-03-27 15:03:27 +03:00 committed by Thomas Waldmann
parent c35dbac44b
commit e494d24d6a

View file

@ -12,10 +12,12 @@
#include <sys/isa_defs.h> #include <sys/isa_defs.h>
#endif #endif
#if (defined(BYTE_ORDER)&&(BYTE_ORDER == BIG_ENDIAN)) || defined(_BIG_ENDIAN) #if (defined(BYTE_ORDER)&&(BYTE_ORDER == BIG_ENDIAN)) || \
(defined(_BIG_ENDIAN)&&defined(__SVR4)&&defined(__sun))
#define _le32toh(x) __builtin_bswap32(x) #define _le32toh(x) __builtin_bswap32(x)
#define _htole32(x) __builtin_bswap32(x) #define _htole32(x) __builtin_bswap32(x)
#elif (defined(BYTE_ORDER)&&(BYTE_ORDER == LITTLE_ENDIAN)) || defined(_LITTLE_ENDIAN) #elif (defined(BYTE_ORDER)&&(BYTE_ORDER == LITTLE_ENDIAN)) || \
(defined(_LITTLE_ENDIAN)&&defined(__SVR4)&&defined(__sun))
#define _le32toh(x) (x) #define _le32toh(x) (x)
#define _htole32(x) (x) #define _htole32(x) (x)
#else #else