diff src/os_unix.c @ 5411:8d83c219fc7b v7.4.056

updated for version 7.4.056 Problem: Mac: Compilation problem with OS X 10.9 Mavericks. Solution: Include AvailabilityMacros.h when available. (Kazunobu Kuriyama)
author Bram Moolenaar <bram@vim.org>
date Sat, 02 Nov 2013 21:49:32 +0100
parents 965044860b7f
children 739074bdceb8
line wrap: on
line diff
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -804,6 +804,12 @@ mch_stackcheck(p)
  * completely full.
  */
 
+#if defined(HAVE_AVAILABILITYMACROS_H) \
+    && defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) \
+    && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1090)
+# include <AvailabilityMacros.h>
+#endif
+
 #ifndef SIGSTKSZ
 # define SIGSTKSZ 8000    /* just a guess of how much stack is needed... */
 #endif