patch 8.0.1629: Mac: getpagesize() is deprecated
Problem: Mac: getpagesize() is deprecated.
Solution: Use sysconf() instead. (Ozaki Kiichi, closes #2741)
diff --git a/src/os_unix.c b/src/os_unix.c
index e0bc3de..b811ac3 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -603,7 +603,7 @@
# ifdef MAC_OS_X_VERSION_10_9
+ vm_stat.compressor_page_count
# endif
- ) * getpagesize();
+ ) * sysconf(_SC_PAGESIZE);
mach_port_deallocate(mach_task_self(), host);
}
# endif
diff --git a/src/version.c b/src/version.c
index dc76b4a..ce1ed20 100644
--- a/src/version.c
+++ b/src/version.c
@@ -767,6 +767,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1629,
+/**/
1628,
/**/
1627,