aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-15 11:48:54 -0700
committerAdam Vandenberg2013-06-15 11:49:12 -0700
commit974a3316cecc335849c7c4f7b4807c1d5f365ec3 (patch)
tree7663ddfb3cb28cf5feafb355673b535b00c8ab7c /Library/Formula
parent546864c6b1e4e7cc016227198ba080d7b017d502 (diff)
downloadhomebrew-974a3316cecc335849c7c4f7b4807c1d5f365ec3.tar.bz2
lftp: hotfix for Snow Leopard
Closes #20435.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/lftp.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/lftp.rb b/Library/Formula/lftp.rb
index 7ceb71b68..cb01cb8e2 100644
--- a/Library/Formula/lftp.rb
+++ b/Library/Formula/lftp.rb
@@ -13,6 +13,13 @@ class Lftp < Formula
depends_on 'readline'
depends_on 'gnutls'
+ # Hotfix for compiling on Snow Leopard; check if still needed in next release
+ # https://github.com/mxcl/homebrew/pull/20435
+ # http://comments.gmane.org/gmane.network.lftp.user/2253
+ def patches
+ DATA
+ end
+
def install
# Bus error
ENV.no_optimization if MacOS.version == :leopard
@@ -22,3 +29,16 @@ class Lftp < Formula
system "make install"
end
end
+
+__END__
+diff --git a/src/buffer_zlib.cc b/src/buffer_zlib.cc
+index 2ceaee9..ef79e6f 100644
+--- a/src/buffer_zlib.cc
++++ b/src/buffer_zlib.cc
+@@ -87,5 +87,5 @@ DataInflator::~DataInflator()
+ }
+ void DataInflator::ResetTranslation()
+ {
+- z_err = inflateReset2(&z, 16+MAX_WBITS);
++ z_err = inflateReset(&z);
+ }