diff --git a/ldb/core.h b/ldb/core.h
index 9179650f3a38f7eeab4423bd7792ba41d8c7bd10..65b0133885a69a007d798d1c4b061bdccb5d7937 100644
--- a/ldb/core.h
+++ b/ldb/core.h
@@ -1,5 +1,4 @@
-
-#define CORE_PAGESIZE (4*1024)
+#define CORE_PAGESIZE OS_VM_DEFAULT_PAGESIZE
 #define CORE_MAGIC (('C' << 24) | ('O' << 16) | ('R' << 8) | 'E')
 #define CORE_END 3840
 #define CORE_NDIRECTORY 3861