summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/mmap/mmap2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mmap/mmap2.c b/test/mmap/mmap2.c
index 8b94c6199..1d5f5db5e 100644
--- a/test/mmap/mmap2.c
+++ b/test/mmap/mmap2.c
@@ -18,7 +18,7 @@
#define FATAL do { fprintf(stderr, "Error at line %d, file %s (%d) [%s]\n", \
__LINE__, __FILE__, errno, strerror(errno)); exit(1); } while(0)
-#define MAP_SIZE 4096UL
+#define MAP_SIZE sysconf(_SC_PAGESIZE)
#define MAP_MASK (MAP_SIZE - 1)
int main(int argc, char **argv) {