summaryrefslogtreecommitdiff
path: root/mail/postfix/patches/patch-bs
diff options
context:
space:
mode:
Diffstat (limited to 'mail/postfix/patches/patch-bs')
-rw-r--r--mail/postfix/patches/patch-bs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mail/postfix/patches/patch-bs b/mail/postfix/patches/patch-bs
new file mode 100644
index 00000000000..756ca03b67f
--- /dev/null
+++ b/mail/postfix/patches/patch-bs
@@ -0,0 +1,22 @@
+$NetBSD: patch-bs,v 1.1 2000/01/16 00:51:07 sommerfeld Exp $
+
+--- util/inet_addr_local.c.orig Fri Aug 27 08:08:43 1999
++++ util/inet_addr_local.c Sat Jan 15 17:41:30 2000
+@@ -42,6 +42,7 @@
+ #include <sys/sockio.h>
+ #endif
+ #include <errno.h>
++#include <string.h>
+
+ /* Utility library. */
+
+@@ -114,7 +115,8 @@
+ the_end = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len);
+ for (ifr = ifc.ifc_req; ifr < the_end;) {
+ if (ifr->ifr_addr.sa_family == AF_INET) { /* IP interface */
+- ifreq = *ifr;
++ char *ifrp = (char *)ifr;
++ memcpy(&ifreq, ifrp, sizeof(*ifr));
+ if (ioctl(sock, SIOCGIFFLAGS, (char *) &ifreq) < 0)
+ msg_fatal("%s: ioctl SIOCGIFFLAGS: %m", myname);
+ if (ifreq.ifr_flags & IFF_UP) { /* active interface */