aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ettercap.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-04-19 14:57:54 -0500
committerMisty De Meo2013-04-19 14:58:40 -0500
commitc50cee51ed38e28dffc0976174995623e86ade8f (patch)
treee5b553607a5cba5212d8c0fc97d4b68ad22e0c1b /Library/Formula/ettercap.rb
parenta8a2cd9f49fd7444b101c032e489cc99d8f5ab64 (diff)
downloadhomebrew-c50cee51ed38e28dffc0976174995623e86ade8f.tar.bz2
ettercap: fix compilation on 10.6 and lower
Fixes #17467.
Diffstat (limited to 'Library/Formula/ettercap.rb')
-rw-r--r--Library/Formula/ettercap.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/ettercap.rb b/Library/Formula/ettercap.rb
index 6a30f0a57..bc2572ce1 100644
--- a/Library/Formula/ettercap.rb
+++ b/Library/Formula/ettercap.rb
@@ -11,6 +11,11 @@ class Ettercap < Formula
depends_on 'libnet'
depends_on 'curl' # require libcurl >= 7.26.0
+ # fixes absence of strndup function on 10.6 and lower; merged upstream
+ def patches
+ "https://github.com/Ettercap/ettercap/commit/1692218693ed419465466299c8c76da41c37c945.patch"
+ end if MacOS.version < 10.7
+
def install
libnet = Formula.factory 'libnet'