mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-09 00:03:55 +00:00
Cope with android predefining PAGE_SIZE as reported by fpliu.
This commit is contained in:
parent
5faf80cd53
commit
8843bdfeb9
1 changed files with 6 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue