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
1 changed files with 4 additions and 2 deletions

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