From 7c79ee985399107a32dd16faae1bf9ea4e63056c Mon Sep 17 00:00:00 2001 From: Xiyue Deng Date: Fri, 1 Nov 2013 11:58:10 -0700 Subject: pcre++: fix building with new GCC and Clang/libc++. * Add missing "#include ". --- Library/Formula/pcre++.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Library') diff --git a/Library/Formula/pcre++.rb b/Library/Formula/pcre++.rb index 6cf43779f..734bf9196 100644 --- a/Library/Formula/pcre++.rb +++ b/Library/Formula/pcre++.rb @@ -7,6 +7,11 @@ class Pcrexx < Formula depends_on 'pcre' + def patches + # Fix building with libc++. Patch sent to maintainer. + DATA + end + def install pcre = Formula.factory('pcre').opt_prefix system "./configure", "--disable-debug", @@ -29,3 +34,16 @@ class Pcrexx < Formula EOS end end + +__END__ +diff -urN pcre++-0.9.5.orig/libpcre++/pcre++.cc pcre++-0.9.5/libpcre++/pcre++.cc +--- pcre++-0.9.5.orig/libpcre++/pcre++.cc 2004-08-24 14:59:21.000000000 -0700 ++++ pcre++-0.9.5/libpcre++/pcre++.cc 2013-11-01 11:30:21.000000000 -0700 +@@ -38,6 +38,7 @@ + * + */ + ++#include + + #include "pcre++.h" + -- cgit v1.2.3