Patch 8.0.1572
Problem:    Mac: getting memory size doesn't work everywhere.
Solution:   Use MACOS_X instead of MACOS_X_DARWIN. (Kazunobu Kuriyama)
Files:      src/os_unix.c


*** ../vim-8.0.1571/src/os_unix.c       2018-03-05 10:54:49.412071984 +0100
--- src/os_unix.c       2018-03-05 21:57:58.943488995 +0100
***************
*** 563,569 ****
  # if defined(HAVE_SYS_SYSINFO_H) && defined(HAVE_SYSINFO)
  #  include <sys/sysinfo.h>
  # endif
! # ifdef MACOS_X_DARWIN
  #  include <mach/mach_host.h>
  #  include <mach/mach_port.h>
  # endif
--- 563,569 ----
  # if defined(HAVE_SYS_SYSINFO_H) && defined(HAVE_SYSINFO)
  #  include <sys/sysinfo.h>
  # endif
! # ifdef MACOS_X
  #  include <mach/mach_host.h>
  #  include <mach/mach_port.h>
  # endif
***************
*** 578,584 ****
      long_u    mem = 0;
      long_u    shiftright = 10;  /* how much to shift "mem" right for Kbyte */
  
! # ifdef MACOS_X_DARWIN
      {
        /* Mac (Darwin) way of getting the amount of RAM available */
        mach_port_t             host = mach_host_self();
--- 578,584 ----
      long_u    mem = 0;
      long_u    shiftright = 10;  /* how much to shift "mem" right for Kbyte */
  
! # ifdef MACOS_X
      {
        /* Mac (Darwin) way of getting the amount of RAM available */
        mach_port_t             host = mach_host_self();
*** ../vim-8.0.1571/src/version.c       2018-03-05 21:32:23.177321875 +0100
--- src/version.c       2018-03-05 21:58:54.783134078 +0100
***************
*** 768,769 ****
--- 768,771 ----
  {   /* Add new patch number below this line */
+ /**/
+     1572,
  /**/

-- 
ARTHUR: I've said I'm sorry about the old woman, but from the behind you
        looked ...
DENNIS: What I object to is that you automatically treat me like an inferior...
ARTHUR: Well ... I AM king.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui