mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
fake_mremap is only used when defined to mremap
This commit is contained in:
parent
1a323770c7
commit
707ca69d31
2
rzip.c
2
rzip.c
|
|
@ -805,7 +805,6 @@ static inline void init_hash_indexes(struct rzip_state *st)
|
||||||
|
|
||||||
#if defined(__APPLE__) || defined(__FreeBSD__)
|
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||||
# define mremap fake_mremap
|
# define mremap fake_mremap
|
||||||
#endif
|
|
||||||
|
|
||||||
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__)
|
||||||
{
|
{
|
||||||
|
|
@ -825,6 +824,7 @@ static inline void *fake_mremap(void *old_address, size_t old_size, size_t new_s
|
||||||
return old_address;
|
return old_address;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* stdin is not file backed so we have to emulate the mmap by mapping
|
/* 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
|
* anonymous ram and reading stdin into it. It means the maximum ram
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue