Created
October 25, 2013 20:09
-
-
Save drussel/7161086 to your computer and use it in GitHub Desktop.
Patch to add #include
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Library/Formula/google-perftools.rb b/Library/Formula/google-perfto | |
index 6fb1434..928de56 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 { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment