1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00
freebsd-ports/benchmarks/postal/files/patch-smtp.h
Martin Wilke f060bf46c1 - Update to 0.73
- Use new options helper
- Update pkg-descr

PR:		187289
Submitted by:	ports fury
2014-03-11 02:36:27 +00:00

35 lines
658 B
C++

--- smtp.h.orig
+++ smtp.h
@@ -4,14 +4,18 @@
using namespace std;
#include <string>
#include <cstring>
-#include <time.h>
+#include <ctime>
#include "conf.h"
+#if defined(_LIBCPP_VERSION)
+#include <unordered_map>
+#else
#ifdef HAVE_EXT_HASH_MAP
using namespace __gnu_cxx;
#include <ext/hash_map>
#else
#include <hash_map.h>
#endif
+#endif
#include "tcp.h"
#include "mutex.h"
@@ -30,7 +34,11 @@
}
};
+#if defined(_LIBCPP_VERSION)
+typedef std::unordered_map<unsigned long, string *, hash<unsigned long>, eqlng> NAME_MAP;
+#else
typedef hash_map<unsigned long, string *, hash<unsigned long>, eqlng> NAME_MAP;
+#endif
class smtpData
{