Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
brammool committed Mar 5, 2018
1 parent 40d77b0 commit 362dc33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os_unix.c
Expand Up @@ -563,7 +563,7 @@ mch_check_messages(void)
# if defined(HAVE_SYS_SYSINFO_H) && defined(HAVE_SYSINFO)
# include <sys/sysinfo.h>
# endif
# ifdef MACOS_X_DARWIN
# ifdef MACOS_X
# include <mach/mach_host.h>
# include <mach/mach_port.h>
# endif
Expand All @@ -578,7 +578,7 @@ mch_total_mem(int special UNUSED)
long_u mem = 0;
long_u shiftright = 10; /* how much to shift "mem" right for Kbyte */

# ifdef MACOS_X_DARWIN
# ifdef MACOS_X
{
/* Mac (Darwin) way of getting the amount of RAM available */
mach_port_t host = mach_host_self();
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -766,6 +766,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1572,
/**/
1571,
/**/
Expand Down

0 comments on commit 362dc33

Please sign in to comment.