aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/vim.rb
diff options
context:
space:
mode:
authorFelix Bùˆnemann2013-08-13 01:09:00 +0200
committerMisty De Meo2013-10-21 11:07:30 -0700
commitfcfd7e1be0de3fc83977f54379848dabc9fe0f48 (patch)
tree9bd02f2efb0f742dc1faa50301e9ed9babbbdc78 /Library/Formula/vim.rb
parente475c43d775258ee38bf55a979f938e5e49d9132 (diff)
downloadhomebrew-fcfd7e1be0de3fc83977f54379848dabc9fe0f48.tar.bz2
vim: Fix compilation on Mac OS X 10.9
- The required macro MAC_OS_X_VERSION_MAX_ALLOWED requires AvailabilityMacros.h to be defined. Closes #20831. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula/vim.rb')
-rw-r--r--Library/Formula/vim.rb19
1 files changed, 18 insertions, 1 deletions
diff --git a/Library/Formula/vim.rb b/Library/Formula/vim.rb
index dc748125a..d56ec1801 100644
--- a/Library/Formula/vim.rb
+++ b/Library/Formula/vim.rb
@@ -31,9 +31,12 @@ class Vim < Formula
depends_on 'lua' => :optional
depends_on 'gtk+' if build.with? 'client-server'
- # vim uses the obsolete Apple-only -no-cpp-precomp flag, which
+ # First patch: vim uses the obsolete Apple-only -no-cpp-precomp flag, which
# FSF GCC can't understand; reported upstream:
# https://groups.google.com/forum/#!topic/vim_dev/X5yG3-IiUp8
+ #
+ # Second patch: includes Mac OS X version macros not included by default on 10.9
+ # Reported upstream: https://groups.google.com/forum/#!topic/vim_mac/5kVAMSPb6uU
def patches; DATA; end
def install
@@ -130,3 +133,17 @@ index d7d4f2a..7015d7b 100755
esac
+diff --git a/src/os_mac.h b/src/os_mac.h
+index 78b79c2..54009ab 100644
+--- a/src/os_mac.h
++++ b/src/os_mac.h
+@@ -16,6 +16,9 @@
+ # define OPAQUE_TOOLBOX_STRUCTS 0
+ #endif
+
++/* Include MAC_OS_X_VERSION_* macros */
++#include <AvailabilityMacros.h>
++
+ /*
+ * Macintosh machine-dependent things.
+ *