aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2009-09-26 20:01:16 -0700
committerMax Howell2009-09-30 18:04:04 +0100
commite4a32736cd72836f3948ea4dd5f5aa97a784ff69 (patch)
tree6a1488454ec0a118af2d1c122f2b37f758cadb30 /Library
parent512a3da8868735f17abb959a682ee5c736c0af3a (diff)
downloadbrew-e4a32736cd72836f3948ea4dd5f5aa97a784ff69.tar.bz2
Add CPPFLAG for ncurses flag under 10.6.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brewkit.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb
index 451911143..2b10a517e 100644
--- a/Library/Homebrew/brewkit.rb
+++ b/Library/Homebrew/brewkit.rb
@@ -149,6 +149,11 @@ module HomebrewEnvExtension
def enable_warnings
remove_from_cflags '-w'
end
+ # Snow Leopard defines an NCURSES value the opposite of most distros
+ # See: http://bugs.python.org/issue6848
+ def ncurses_define
+ append 'CPPFLAGS', "-DNCURSES_OPAQUE=0"
+ end
# returns the compiler we're using
def cc
ENV['CC'] or "gcc"