mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-01-03 15:10:04 +01:00
Cope with android predefining PAGE_SIZE as reported by fpliu.
This commit is contained in:
parent
5faf80cd53
commit
8843bdfeb9
|
|
@ -260,10 +260,12 @@ typedef sem_t cksem_t;
|
|||
# define PROCESSORS (sysconf(_SC_NPROCESSORS_ONLN))
|
||||
#endif
|
||||
|
||||
#ifdef _SC_PAGE_SIZE
|
||||
# define PAGE_SIZE (sysconf(_SC_PAGE_SIZE))
|
||||
#else
|
||||
# define PAGE_SIZE (4096)
|
||||
#ifndef PAGE_SIZE
|
||||
# ifdef _SC_PAGE_SIZE
|
||||
# define PAGE_SIZE (sysconf(_SC_PAGE_SIZE))
|
||||
# else
|
||||
# define PAGE_SIZE (4096)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define dealloc(ptr) do { \
|
||||
|
|
|
|||
Loading…
Reference in a new issue