summaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
authorSimon Rettberg2015-01-13 17:56:24 +0100
committerSimon Rettberg2015-01-13 17:56:24 +0100
commit20f09cf05f9953764a8ed5ab4096f8ccc09c8c72 (patch)
treee9ad78bb77e08ca7c97c6e07ccbe47e594ce5775 /src/types.h
parent[CLIENT] Fix compilation, adapt to stdbool.h (diff)
downloaddnbd3-20f09cf05f9953764a8ed5ab4096f8ccc09c8c72.tar.gz
dnbd3-20f09cf05f9953764a8ed5ab4096f8ccc09c8c72.tar.xz
dnbd3-20f09cf05f9953764a8ed5ab4096f8ccc09c8c72.zip
Fix compilation on CentOS by adding yet another endian related check
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.h b/src/types.h
index e2de013..027a1f1 100644
--- a/src/types.h
+++ b/src/types.h
@@ -58,7 +58,7 @@ static const uint16_t dnbd3_packet_magic = (0x73 << 8) | (0x72);
(a).size = net_order_32((a).size); \
} while (0)
#define ENDIAN_MODE "Big Endian"
-#elif defined(__LITTLE_ENDIAN__) || (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && __BYTE_ORDER == __LITTLE_ENDIAN) || (defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || defined(__i386__) || defined(__i386)
+#elif defined(__LITTLE_ENDIAN__) || (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && __BYTE_ORDER == __LITTLE_ENDIAN) || (defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || defined(__i386__) || defined(__i386) || defined(__x86_64)
static const uint16_t dnbd3_packet_magic = (0x73) | (0x72 << 8);
// Make little endian our network byte order as probably 99.999% of machines this will be used on are LE
#define net_order_64(a) (a)