0003-endian.patch 538 Bytes
Newer Older
1 2 3
From: Lorenz Minder <lminder@gmx.net>
Date: Tue, 22 Apr 2014 11:17:11 +0200
Subject: endian
4

5 6 7 8 9 10 11 12 13
Use correct endianess on big-endian machines.

Closes: #531621
---
 src/bswap.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bswap.h b/src/bswap.h
index fdf53dc..e69f7e8 100644
Benjamin Drung's avatar
Benjamin Drung committed
14 15
--- a/src/bswap.h
+++ b/src/bswap.h
16 17 18 19 20 21 22 23 24 25 26 27
@@ -22,6 +22,11 @@
 #ifndef LIBDVDREAD_BSWAP_H
 #define LIBDVDREAD_BSWAP_H
 
+#include <endian.h>
+#if BYTE_ORDER == BIG_ENDIAN
+#define WORDS_BIGENDIAN
+#endif
+
 #include <config.h>
 
 #if defined(WORDS_BIGENDIAN)