summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorrillig <rillig>2007-11-30 20:09:36 +0000
committerrillig <rillig>2007-11-30 20:09:36 +0000
commit2d5144978878f802b61fe090b1b6273089baee04 (patch)
treeb292e9bea35dd5c1fefed2f3451264ec445b8fd7 /mail
parent46ba4ab908407d6dbe7d54479dd835719b50f59a (diff)
downloadpkgsrc-2d5144978878f802b61fe090b1b6273089baee04.tar.gz
On NetBSD, struct ifconf.ifc_buf is a void *.
Diffstat (limited to 'mail')
-rw-r--r--mail/avenger/distinfo4
-rw-r--r--mail/avenger/patches/patch-ab24
-rw-r--r--mail/avenger/patches/patch-ac15
3 files changed, 42 insertions, 1 deletions
diff --git a/mail/avenger/distinfo b/mail/avenger/distinfo
index 71ef4af3030..d401cc0c22d 100644
--- a/mail/avenger/distinfo
+++ b/mail/avenger/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/10/25 14:05:31 rillig Exp $
+$NetBSD: distinfo,v 1.2 2007/11/30 20:09:36 rillig Exp $
SHA1 (avenger-0.7.7.tar.gz) = 2ba44c82be8b78cf31758a25a79c8366ee6626b8
RMD160 (avenger-0.7.7.tar.gz) = f01eebb2f41224e8e8ad655ca15afa2d1ee06ce2
Size (avenger-0.7.7.tar.gz) = 824862 bytes
SHA1 (patch-aa) = 7df2d9ac15feaf69bbc93e33de59ca25891c4223
+SHA1 (patch-ab) = 831944e8447433b2697db2b3a58650aab19f4a19
+SHA1 (patch-ac) = 9b3625a090e0f9091468b86a99d0bea6535ac371
diff --git a/mail/avenger/patches/patch-ab b/mail/avenger/patches/patch-ab
new file mode 100644
index 00000000000..b2e5c549535
--- /dev/null
+++ b/mail/avenger/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1 2007/11/30 20:09:36 rillig Exp $
+
+On NetBSD, struct ifconf.ifc_buf is a void *.
+
+--- asmtpd/synfp.C.orig 2005-10-19 23:52:26.000000000 +0000
++++ asmtpd/synfp.C 2007-11-30 20:06:43.000000000 +0000
+@@ -86,7 +86,7 @@ synfp::ifnames (vec<str> *ifs, in_addr t
+ for (str *sp = ifs->base (); sp < ifs->lim (); sp++)
+ seen.insert (*sp);
+
+- char *p = ifc.ifc_buf, *e = p + ifc.ifc_len;
++ char *p = static_cast<char *>(ifc.ifc_buf), *e = p + ifc.ifc_len;
+ while (p < e) {
+ struct ifreq *ifrp = (struct ifreq *) p;
+ struct ifreq ifr = *ifrp;
+@@ -151,7 +151,7 @@ synfp::ifaddrs (vec<in_addr> *addrs, str
+ for (in_addr *ap = addrs->base (); ap < addrs->lim (); ap++)
+ seen.insert (*ap);
+
+- char *p = ifc.ifc_buf, *e = p + ifc.ifc_len;
++ char *p = static_cast<char *>(ifc.ifc_buf), *e = p + ifc.ifc_len;
+ while (p < e) {
+ struct ifreq *ifrp = (struct ifreq *) p;
+ struct ifreq ifr = *ifrp;
diff --git a/mail/avenger/patches/patch-ac b/mail/avenger/patches/patch-ac
new file mode 100644
index 00000000000..942d6d106de
--- /dev/null
+++ b/mail/avenger/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1 2007/11/30 20:09:37 rillig Exp $
+
+On NetBSD, struct ifconf.ifc_buf is a void *.
+
+--- libasync/myaddrs.C.orig 2006-02-15 09:13:35.000000000 +0000
++++ libasync/myaddrs.C 2007-11-30 20:03:01.000000000 +0000
+@@ -74,7 +74,7 @@ myipaddrs (vec<in_addr> *res)
+ res->clear ();
+ bhash<in_addr> addrs;
+
+- p = ifc.ifc_buf;
++ p = static_cast<char *>(ifc.ifc_buf);
+ e = p + ifc.ifc_len;
+ while (p < e) {
+ struct ifreq *ifrp = (struct ifreq *) p;