google-perftools: add missing #include
Fixes Homebrew/homebrew#23601. Closes Homebrew/homebrew#23752. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
e135e35c42
commit
5dd3c4e316
1 changed files with 15 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue