mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-28 14:35:50 -04:00
53 lines
1.0 KiB
Plaintext
53 lines
1.0 KiB
Plaintext
$NetBSD: patch-an,v 1.6 2012/06/09 11:45:38 adam Exp $
|
|
|
|
--- courier/webmlmd.C.orig Thu Jul 5 01:47:38 2007
|
|
+++ courier/webmlmd.C
|
|
@@ -21,6 +21,7 @@
|
|
#include <string.h>
|
|
#include <signal.h>
|
|
|
|
+#include <sys/param.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/socket.h>
|
|
@@ -40,6 +41,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"
|