mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Big endian fix for Solaris Sparc courtesy of joelfredrikson.
This commit is contained in:
parent
3dfcde4a82
commit
b8c1e9ca63
|
|
@ -67,6 +67,10 @@ void *alloca (size_t);
|
||||||
# include <sys/endian.h>
|
# include <sys/endian.h>
|
||||||
#endif
|
#endif
|
||||||
#ifndef __BYTE_ORDER
|
#ifndef __BYTE_ORDER
|
||||||
|
# ifndef __BIG_ENDIAN
|
||||||
|
# define __BIG_ENDIAN 4321
|
||||||
|
# define __LITTLE_ENDIAN 1234
|
||||||
|
# endif
|
||||||
# ifdef WORDS_BIGENDIAN
|
# ifdef WORDS_BIGENDIAN
|
||||||
# define __BYTE_ORDER __BIG_ENDIAN
|
# define __BYTE_ORDER __BIG_ENDIAN
|
||||||
# else
|
# else
|
||||||
|
|
|
||||||
2
rzip.c
2
rzip.c
|
|
@ -772,7 +772,7 @@ static inline void init_hash_indexes(struct rzip_state *st)
|
||||||
st->hash_index[i] = ((random() << 16) ^ random());
|
st->hash_index[i] = ((random() << 16) ^ random());
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__APPLE__) || defined(__FreeBSD__)
|
#if !defined(__linux)
|
||||||
# define mremap fake_mremap
|
# define mremap fake_mremap
|
||||||
|
|
||||||
static inline void *fake_mremap(void *old_address, size_t old_size, size_t new_size, int flags __UNUSED__)
|
static inline void *fake_mremap(void *old_address, size_t old_size, size_t new_size, int flags __UNUSED__)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue