summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2019-03-26 13:06:36 +0100
committerHans Kristian Rosbach <hk-github@circlestorm.org>2019-03-27 12:59:51 +0100
commitcde1daff92c8a31b5c6cbd5362181f29f153e375 (patch)
tree07980fecaef7d16b30b487f98fdd09d7323f12ba
parentd62321622a3bbff0633a55f6525d8d64887a0bb7 (diff)
downloadProject-Tick-cde1daff92c8a31b5c6cbd5362181f29f153e375.tar.gz
Project-Tick-cde1daff92c8a31b5c6cbd5362181f29f153e375.zip
Fix endianness detection in memcopy.h
When memcopy.h is included into inffast.c, endianness-related preperocessor defines are not set, which leads to BYTE_ORDER == LITTLE_ENDIAN condition being always true. This breaks decompression at least on s390x.
-rw-r--r--memcopy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/memcopy.h b/memcopy.h
index e0e82c7acc..9ce391106d 100644
--- a/memcopy.h
+++ b/memcopy.h
@@ -4,6 +4,8 @@
#ifndef MEMCOPY_H_
#define MEMCOPY_H_
+ #include "gzendian.h"
+
/* Load 64 bits from IN and place the bytes at offset BITS in the result. */
static inline uint64_t load_64_bits(const unsigned char *in, unsigned bits) {
uint64_t chunk;