--- src/misc/re.cxx.orig 2014-02-03 15:43:56.000000000 -0800 +++ src/misc/re.cxx 2014-04-11 16:24:42.000000000 -0700 @@ -120,12 +120,25 @@ } } +#ifdef __clang__ + #if __has_include() + #include + #define HAS_STD_TR1 + #endif +#endif +#ifndef HAS_STD_TR1 #include +#endif size_t re_t::hash(void) const { +#ifdef HAS_STD_TR1 + size_t h = std::hash()(pattern); + return h ^ (std::hash()(cflags) + 0x9e3779b9 + (h << 6) + (h >> 2)); +#else size_t h = tr1::hash()(pattern); return h ^ (tr1::hash()(cflags) + 0x9e3779b9 + (h << 6) + (h >> 2)); +#endif } // ------------------------------------------------------------------------