1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 09:19:31 +00:00

Fix build on illumos

This commit is contained in:
Alexander Pyhalov 2016-03-21 11:18:43 +03:00
parent f486a6772c
commit f63be63347

View file

@ -8,10 +8,14 @@
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#if defined(BYTE_ORDER)&&(BYTE_ORDER == BIG_ENDIAN) #if defined (__SVR4) && defined (__sun)
#include <sys/isa_defs.h>
#endif
#if (defined(BYTE_ORDER)&&(BYTE_ORDER == BIG_ENDIAN)) || defined(_BIG_ENDIAN)
#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) #elif (defined(BYTE_ORDER)&&(BYTE_ORDER == LITTLE_ENDIAN)) || defined(_LITTLE_ENDIAN)
#define _le32toh(x) (x) #define _le32toh(x) (x)
#define _htole32(x) (x) #define _htole32(x) (x)
#else #else