aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDaniel Russel2013-10-29 11:47:58 -0700
committerAdam Vandenberg2013-10-30 07:44:57 -0700
commit0a609e9b4338fa608980731eb5cda0944355e709 (patch)
treedfc7e6fe56c48d7f0bfcb71afccaf37d43847009 /Library/Formula
parent92563c650ca3af6515fdd564f0fba8ceeecfd455 (diff)
downloadhomebrew-0a609e9b4338fa608980731eb5cda0944355e709.tar.bz2
google-perftools: add missing #include
Fixes #23601. Closes #23752. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/google-perftools.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/google-perftools.rb b/Library/Formula/google-perftools.rb
index 6fb14345d..928de5638 100644
--- a/Library/Formula/google-perftools.rb
+++ b/Library/Formula/google-perftools.rb
@@ -11,6 +11,10 @@ class GooglePerftools < Formula
cause "Segfault during linking"
end
+ def patches
+ DATA
+ end
+
def install
ENV.append_to_cflags '-D_XOPEN_SOURCE'
system "./configure", "--disable-dependency-tracking",
@@ -19,3 +23,14 @@ class GooglePerftools < Formula
system "make install"
end
end
+
+__END__
+--- a/src/static_vars.cc
++++ b/src/static_vars.cc
+@@ -37,6 +37,7 @@
+ #include "common.h"
+ #include "sampler.h" // for Sampler
+ #include "base/googleinit.h"
++#include <pthread.h>
+
+ namespace tcmalloc {