From 013f4c87edd89581ad5e1fba01dd93bdcc92f58f Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Tue, 8 Jul 2014 20:11:04 +0000 Subject: Stage, and fix build with clang. PR: 191377 Submitted by: tkato432@yahoo.com --- www/logtools/files/patch-clfdomainsplit.cpp | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 www/logtools/files/patch-clfdomainsplit.cpp (limited to 'www/logtools/files/patch-clfdomainsplit.cpp') diff --git a/www/logtools/files/patch-clfdomainsplit.cpp b/www/logtools/files/patch-clfdomainsplit.cpp new file mode 100644 index 000000000000..753703f1aa4a --- /dev/null +++ b/www/logtools/files/patch-clfdomainsplit.cpp @@ -0,0 +1,43 @@ +--- clfdomainsplit.cpp.orig Mon Jun 9 10:56:27 2003 ++++ clfdomainsplit.cpp Mon Jun 9 10:56:47 2003 +@@ -1,19 +1,23 @@ +-#include ++#include + +-#if (__GNUC__ >= 3) +-#include ++#if defined(_LIBCPP_VERSION) ++#include + #else +-#include ++#include + #endif + ++#include + #include + #include + #include +-#include ++#include ++#include + #include "logtools.h" + + using namespace std; ++#if !defined(_LIBCPP_VERSION) + using namespace __gnu_cxx; ++#endif + + // MAX_FDS is the maximum number of files that will be directly written to + // by one process +@@ -166,7 +170,11 @@ + size_t operator()(const string str) const { return hash()(str.c_str()); } + }; + ++#if defined(_LIBCPP_VERSION) ++typedef unordered_map HASH_TYPE; ++#else + typedef hash_map HASH_TYPE; ++#endif + HASH_TYPE fd_map; + + typedef FILE * PFILE; -- cgit v1.2.3