diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-02-19 22:33:12 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-19 22:33:12 +0000 |
commit | 64d162606fa4746460c06751d2723335d8581c8f (patch) | |
tree | 05d92937360a62fd50abdeb2750a43b6e8513a3d /testing/pixz/endian.patch | |
parent | 326b8d52400be34e88cf1486c183db1b2d1217ce (diff) | |
download | aports-64d162606fa4746460c06751d2723335d8581c8f.tar.bz2 aports-64d162606fa4746460c06751d2723335d8581c8f.tar.xz |
testing/pixz: fix endian problems on ppc64 / s390x
Diffstat (limited to 'testing/pixz/endian.patch')
-rw-r--r-- | testing/pixz/endian.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/pixz/endian.patch b/testing/pixz/endian.patch new file mode 100644 index 0000000000..bdc2c58c26 --- /dev/null +++ b/testing/pixz/endian.patch @@ -0,0 +1,26 @@ +--- pixz-1.0.6.orig/src/endian.c ++++ pixz-1.0.6/src/endian.c +@@ -19,19 +19,19 @@ + #include <sys/endian.h> + #endif + +-#if !HAVE_DECL_HTOLE64 ++#if !HAVE_DECL_HTOLE64 && !defined(htole64) + # if __BYTE_ORDER == __LITTLE_ENDIAN + # define htole64(x) (x) + # else +-# define htole64(x) __bswap_64 (x) ++# define htole64(x) __bswap64 (x) + # endif + #endif + +-#if !HAVE_DECL_LE64TOH ++#if !HAVE_DECL_LE64TOH && !defined(le64toh) + # if __BYTE_ORDER == __LITTLE_ENDIAN + # define le64toh(x) (x) + # else +-# define le64toh(x) __bswap_64 (x) ++# define le64toh(x) __bswap64 (x) + # endif + #endif + |