52 lines
1 KiB
Text
52 lines
1 KiB
Text
$NetBSD: patch-an,v 1.5 2010/11/10 10:40:16 adam Exp $
|
|
|
|
--- courier/webmlmd.C.orig Thu Jul 5 01:47:38 2007
|
|
+++ courier/webmlmd.C
|
|
@@ -22,6 +22,7 @@
|
|
#include <string.h>
|
|
#include <signal.h>
|
|
|
|
+#include <sys/param.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/socket.h>
|
|
@@ -41,6 +42,39 @@
|
|
#include <sstream>
|
|
#include <map>
|
|
|
|
+#if defined(__FreeBSD_version) && (__FreeBSD_version < 500029)
|
|
+#include <cwchar>
|
|
+namespace std {
|
|
+ typedef basic_string <wchar_t> wstring;
|
|
+
|
|
+ template<>
|
|
+ struct char_traits<wchar_t>
|
|
+ {
|
|
+ typedef wchar_t char_type;
|
|
+
|
|
+ static void assign(wchar_t &c1, const wchar_t &c2)
|
|
+ {
|
|
+ c1 = c2;
|
|
+ }
|
|
+
|
|
+ static wchar_t *assign(wchar_t *s, size_t n, wchar_t c)
|
|
+ {
|
|
+ return wmemset(s, c, n);
|
|
+ }
|
|
+
|
|
+ static wchar_t *copy(wchar_t *s1, const wchar_t *s2, unsigned n)
|
|
+ {
|
|
+ return wmemcpy(s1, s2, n);
|
|
+ }
|
|
+
|
|
+ static wchar_t *move(wchar_t *s1, const wchar_t *s2, unsigned n)
|
|
+ {
|
|
+ return wmemmove(s1, s2, n);
|
|
+ }
|
|
+ };
|
|
+}
|
|
+#endif
|
|
+
|
|
#include "cmlm.h"
|
|
#include "cmlmcmdmisc.h"
|
|
#include "webmlmd.H"
|