freebsd-ports/mail/normalizemime/files/patch-normalizemime.cc
Mario Sergio Fujikawa Ferreira d3b1a26146 o Improve previous fix for building on OSVERSION < 500000: simple
patch instead of USE_GCC=3.4+
o Bump PORTREVISION due to dependency change
2005-09-13 16:53:25 +00:00

20 lines
499 B
C++

--- normalizemime.cc.orig Tue Sep 13 00:03:52 2005
+++ normalizemime.cc Tue Sep 13 00:04:18 2005
@@ -58,6 +58,8 @@
#include <map>
#include <string>
+#include <sys/types.h>
+
#include <regex.h>
#include <assert.h>
#include <ctype.h>
@@ -498,7 +500,7 @@
char *obuf = buf;
memcpy (icopy, message.c_str(), in_left);
message.erase ();
- char *ibuf = icopy;
+ const char *ibuf = icopy;
while (in_left > 0) {
if ((size_t)(-1) == iconv (ic, &ibuf, &in_left, &obuf, &out_left)) {