--- smtp.h.orig 2012-01-14 12:36:56 UTC +++ smtp.h @@ -4,14 +4,18 @@ using namespace std; #include #include -#include +#include #include "conf.h" +#if defined(_LIBCPP_VERSION) +#include +#else #ifdef HAVE_EXT_HASH_MAP using namespace __gnu_cxx; #include #else #include #endif +#endif #include "tcp.h" #include "mutex.h" @@ -30,7 +34,11 @@ struct eqlng } }; +#if defined(_LIBCPP_VERSION) +typedef std::unordered_map, eqlng> NAME_MAP; +#else typedef hash_map, eqlng> NAME_MAP; +#endif class smtpData {