mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 17:27:31 +00:00
failing hashindex tests on netbsd, fixes #804
This commit is contained in:
parent
c35dbac44b
commit
e494d24d6a
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue