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:
parent
f486a6772c
commit
f63be63347
1 changed files with 6 additions and 2 deletions
|
@ -8,10 +8,14 @@
|
|||
#include <fcntl.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 _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 _htole32(x) (x)
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue