Cope with android predefining PAGE_SIZE as reported by fpliu.

This commit is contained in:
Con Kolivas 2022-02-25 22:56:15 +11:00
parent 5faf80cd53
commit 8843bdfeb9

View file

@ -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 { \