diff options
| author | Alex Samorukov | 2014-08-07 14:24:40 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-08-07 18:12:07 +0100 |
| commit | d963e55089db54aa1967ba08b01424aa4b6bae61 (patch) | |
| tree | b3b6d48bc1858b6e9e979c7bb15fd9ad7381619f /Library/Formula | |
| parent | d5abf3b86007652e10ca25f32fc42945c7727ce1 (diff) | |
| download | homebrew-d963e55089db54aa1967ba08b01424aa4b6bae61.tar.bz2 | |
yconalyzer: fix build issue with clang.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/yconalyzer.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/yconalyzer.rb b/Library/Formula/yconalyzer.rb index 87dbabfde..3be3995f2 100644 --- a/Library/Formula/yconalyzer.rb +++ b/Library/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 <string> + +-#if __GNUC__ > 2 + #include <map> +-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 <hash_map.h> +-#define KEY_FMT_STRING "%8ux%4hx" +- +-#endif +- + static int debug = 0; + static u_short port = 0; + static int nbuckets; |
