From 3049411d32c5d4ee832cd5d391cca07c14cb42ef Mon Sep 17 00:00:00 2001 From: Alex Samorukov Date: Thu, 7 Aug 2014 14:24:40 +0200 Subject: [PATCH] yconalyzer: fix build issue with clang. --- Formula/yconalyzer.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Formula/yconalyzer.rb b/Formula/yconalyzer.rb index 87dbabfde9..3be3995f28 100644 --- a/Formula/yconalyzer.rb +++ b/Formula/yconalyzer.rb @@ -13,4 +13,33 @@ class Yconalyzer < Formula system "chmod +x ./install-sh" system "make install" end + + # Fix build issues issue on OS X 10.9/clang + # Patch reported to upstream - https://sourceforge.net/p/yconalyzer/bugs/3/ + patch :p0, :DATA + end +__END__ +--- yconalyzer.cc.orig 2014-01-12 14:15:17.000000000 +0800 ++++ yconalyzer.cc 2014-01-12 14:17:49.000000000 +0800 +@@ -76,19 +76,11 @@ + + #include + +-#if __GNUC__ > 2 + #include +-using namespace _GLIBCXX_STD; ++using namespace std; + // Linux gcc-3 is not too happy with the format strings we use in BSD. + #define KEY_FMT_STRING "%#8x%#4x" + +-#else /* We are using gnu-c <= 2 */ +- +-#include +-#define KEY_FMT_STRING "%8ux%4hx" +- +-#endif +- + static int debug = 0; + static u_short port = 0; + static int nbuckets;