Skip to content

Commit 362dc33

Browse files
committed
patch 8.0.1572: Mac: getting memory size doesn't work everywhere
Problem: Mac: getting memory size doesn't work everywhere. Solution: Use MACOS_X instead of MACOS_X_DARWIN. (Kazunobu Kuriyama)
1 parent 40d77b0 commit 362dc33

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/os_unix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ mch_check_messages(void)
563563
# if defined(HAVE_SYS_SYSINFO_H) && defined(HAVE_SYSINFO)
564564
# include <sys/sysinfo.h>
565565
# endif
566-
# ifdef MACOS_X_DARWIN
566+
# ifdef MACOS_X
567567
# include <mach/mach_host.h>
568568
# include <mach/mach_port.h>
569569
# endif
@@ -578,7 +578,7 @@ mch_total_mem(int special UNUSED)
578578
long_u mem = 0;
579579
long_u shiftright = 10; /* how much to shift "mem" right for Kbyte */
580580

581-
# ifdef MACOS_X_DARWIN
581+
# ifdef MACOS_X
582582
{
583583
/* Mac (Darwin) way of getting the amount of RAM available */
584584
mach_port_t host = mach_host_self();

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ static char *(features[]) =
766766

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1572,
769771
/**/
770772
1571,
771773
/**/

0 commit comments

Comments
 (0)