aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXiyue Deng2013-10-28 23:26:52 -0700
committerXiyue Deng2013-10-28 23:26:52 -0700
commit7947b538f0d293d786204a56135a71bce1c2f35d (patch)
tree62214013a2271339f26f0aa4bda5da43bacdaf88 /Library
parentca0a5368eedf5fa7ddcc74ab7583b03b9bd30121 (diff)
downloadhomebrew-7947b538f0d293d786204a56135a71bce1c2f35d.tar.bz2
hping: fix building with secure strlcpy.
Closes #23677.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/hping.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/hping.rb b/Library/Formula/hping.rb
index 199f1d1db..ee530beec 100644
--- a/Library/Formula/hping.rb
+++ b/Library/Formula/hping.rb
@@ -18,6 +18,10 @@ class Hping < Formula
end
def install
+ # Conflict with secure strcpy function. Applying suggested fix from macports.
+ # http://trac.macports.org/ticket/40763#comment:2
+ ENV.append 'CFLAGS', '-D_FORTIFY_SOURCE=0'
+
# Compile fails with tcl support; TCL on OS X is 32-bit only
system "./configure", "--no-tcl"