summaryrefslogtreecommitdiff
path: root/mail/xfmail
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-10-16 15:49:57 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-10-16 15:49:57 +0000
commitc8181e4c1a52e74af13162d6eb7109b0f8438ab4 (patch)
tree16e9c8f00c7a2578112334c35200869d0de13b8f /mail/xfmail
parentMASTER_SITE is moved. (diff)
Get this to compile with gcc 3.x on -current. Mostly consists of moving
this to ANSI C++. Approved by: mikeh (maintainer)
Notes
Notes: svn path=/head/; revision=68149
Diffstat (limited to 'mail/xfmail')
-rw-r--r--mail/xfmail/files/patch-ac15
-rw-r--r--mail/xfmail/files/patch-ad14
-rw-r--r--mail/xfmail/files/patch-ae15
-rw-r--r--mail/xfmail/files/patch-af11
-rw-r--r--mail/xfmail/files/patch-ag11
5 files changed, 66 insertions, 0 deletions
diff --git a/mail/xfmail/files/patch-ac b/mail/xfmail/files/patch-ac
new file mode 100644
index 000000000000..ae3bcbc6731e
--- /dev/null
+++ b/mail/xfmail/files/patch-ac
@@ -0,0 +1,15 @@
+--- src/mail/cfgfile.h.orig Tue Oct 15 17:29:47 2002
++++ src/mail/cfgfile.h Tue Oct 15 16:51:06 2002
+@@ -30,8 +30,10 @@
+
+ #include <config.h>
+
+-#include <iostream.h>
+-#include <fstream.h>
++using namespace std;
++
++#include <iostream>
++#include <fstream>
+ #include <assert.h>
+ #include <map>
+ #include <string>
diff --git a/mail/xfmail/files/patch-ad b/mail/xfmail/files/patch-ad
new file mode 100644
index 000000000000..aee644a03de0
--- /dev/null
+++ b/mail/xfmail/files/patch-ad
@@ -0,0 +1,14 @@
+--- src/mail/connection.cpp.orig Tue Oct 15 17:32:03 2002
++++ src/mail/connection.cpp Tue Oct 15 16:56:49 2002
+@@ -25,9 +25,9 @@
+ * *
+ ******************************************************************************/
+
++using namespace std;
+
+-
+-#include <iostream.h>
++#include <iostream>
+ #include <list>
+ #include <string>
+ #include <string.h>
diff --git a/mail/xfmail/files/patch-ae b/mail/xfmail/files/patch-ae
new file mode 100644
index 000000000000..42f60480b7cf
--- /dev/null
+++ b/mail/xfmail/files/patch-ae
@@ -0,0 +1,15 @@
+--- src/mail/debug.cpp.orig Tue Oct 15 17:32:57 2002
++++ src/mail/debug.cpp Tue Oct 15 16:59:15 2002
+@@ -25,9 +25,12 @@
+ * *
+ ******************************************************************************/
+
++using namespace std;
++
+ #include <glib.h>
+ #include <debug.h>
+ #include <fmail.h>
++#include <iostream>
+
+ #if STDC_HEADERS || defined(USE_STDARG)
+ void _debugpf(char *fmt, ...)
diff --git a/mail/xfmail/files/patch-af b/mail/xfmail/files/patch-af
new file mode 100644
index 000000000000..92516f71b4ba
--- /dev/null
+++ b/mail/xfmail/files/patch-af
@@ -0,0 +1,11 @@
+--- src/mail/fmail.h.orig Tue Oct 15 17:34:06 2002
++++ src/mail/fmail.h Tue Oct 15 16:54:32 2002
+@@ -47,6 +47,8 @@
+ #include <config.h>
+ #endif
+
++ using namespace std;
++
+ #include <vector>
+ #include <list>
+ #include <stdio.h>
diff --git a/mail/xfmail/files/patch-ag b/mail/xfmail/files/patch-ag
new file mode 100644
index 000000000000..06d9fca57ee0
--- /dev/null
+++ b/mail/xfmail/files/patch-ag
@@ -0,0 +1,11 @@
+--- src/ui/rules.cpp.orig Tue Oct 15 17:35:07 2002
++++ src/ui/rules.cpp Tue Oct 15 17:22:11 2002
+@@ -366,7 +366,7 @@
+ r_modified = 0;
+ fl_delete_browser_line(rule_obj->Rule_List, k);
+ add_dead_rule(rules[i]);
+- rules.erase(&rules[i]);
++ rules.erase(rules.begin() + i);
+
+ changed = 1;
+