File pixz-endianess-functions.patch of Package pixz

---
 endian.c |    8 ++++++++
 1 file changed, 8 insertions(+)

Index: pixz-1.0.2/endian.c
===================================================================
--- pixz-1.0.2.orig/endian.c	2013-01-09 04:25:03.000000000 +0000
+++ pixz-1.0.2/endian.c	2013-09-26 20:02:24.000000000 +0100
@@ -19,6 +19,14 @@ void xle64enc(uint8_t *d, uint64_t n) {
 	#include <sys/endian.h>
 #endif
 
+# if __BYTE_ORDER == __LITTLE_ENDIAN
+#  define htole64(x) (x)
+#  define le64toh(x) (x)
+# else
+#  define htole64(x) __bswap_64 (x)
+#  define le64toh(x) __bswap_64 (x)
+# endif
+
 uint64_t xle64dec(const uint8_t *d) {
     return le64toh(*(uint64_t*)d);
 }