Skip to content

Commit

Permalink
google-perftools: add missing #include
Browse files Browse the repository at this point in the history
Fixes Homebrew#23601.
Closes Homebrew#23752.

Signed-off-by: Adam Vandenberg <[email protected]>
  • Loading branch information
drussel authored and adamv committed Oct 30, 2013
1 parent 92563c6 commit 0a609e9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Library/Formula/google-perftools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -19,3 +23,14 @@ def install
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 {

0 comments on commit 0a609e9

Please sign in to comment.