summaryrefslogtreecommitdiff
path: root/mail/cone/patches/patch-libmail-tmpaccount.C
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-11-22 18:12:35 +0000
committerjoerg <joerg@pkgsrc.org>2011-11-22 18:12:35 +0000
commit9bd1bb8e67f477fbd34b4820f8ea9d54a7058d01 (patch)
treeb0429a53076bccc11994341b47276231f70d6cdf /mail/cone/patches/patch-libmail-tmpaccount.C
parent6de67c8841f1c252d43a756308a57a98299a32b4 (diff)
downloadpkgsrc-9bd1bb8e67f477fbd34b4820f8ea9d54a7058d01.tar.gz
Fix build with newer GCC
Diffstat (limited to 'mail/cone/patches/patch-libmail-tmpaccount.C')
-rw-r--r--mail/cone/patches/patch-libmail-tmpaccount.C15
1 files changed, 15 insertions, 0 deletions
diff --git a/mail/cone/patches/patch-libmail-tmpaccount.C b/mail/cone/patches/patch-libmail-tmpaccount.C
new file mode 100644
index 00000000000..063ac51cd26
--- /dev/null
+++ b/mail/cone/patches/patch-libmail-tmpaccount.C
@@ -0,0 +1,15 @@
+$NetBSD: patch-libmail-tmpaccount.C,v 1.1 2011/11/22 18:12:35 joerg Exp $
+
+Use stdio functions to ensure that the mail::file cast to FILE * happens.
+
+--- libmail/tmpaccount.C.orig 2011-11-22 16:37:21.000000000 +0000
++++ libmail/tmpaccount.C
+@@ -14,6 +14,8 @@
+ #include <errno.h>
+ #include <sys/stat.h>
+
++#undef ferror
++
+ using namespace std;
+
+ LIBMAIL_START