From 707ca69d31c97745f5b757cce4da233f920ff04d Mon Sep 17 00:00:00 2001 From: ckolivas Date: Sun, 8 Mar 2015 23:29:27 +1100 Subject: [PATCH] fake_mremap is only used when defined to mremap --- rzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rzip.c b/rzip.c index 43ad568..8184e0f 100644 --- a/rzip.c +++ b/rzip.c @@ -805,7 +805,6 @@ static inline void init_hash_indexes(struct rzip_state *st) #if defined(__APPLE__) || defined(__FreeBSD__) # define mremap fake_mremap -#endif static inline void *fake_mremap(void *old_address, size_t old_size, size_t new_size, int flags __UNUSED__) { @@ -825,6 +824,7 @@ static inline void *fake_mremap(void *old_address, size_t old_size, size_t new_s return old_address; } } +#endif /* stdin is not file backed so we have to emulate the mmap by mapping * anonymous ram and reading stdin into it. It means the maximum ram