diff --git a/net/pdnsd/patches/patch-netdev_c b/net/pdnsd/patches/patch-netdev_c index b7193af48f4..93f144f9494 100644 --- a/net/pdnsd/patches/patch-netdev_c +++ b/net/pdnsd/patches/patch-netdev_c @@ -1,7 +1,4 @@ -$OpenBSD: patch-netdev_c,v 1.2 2001/07/13 13:30:03 naddy Exp $ - -- add define from FreeBSD net/if.h as we don't have it here - +$OpenBSD: patch-netdev_c,v 1.3 2001/07/16 00:02:34 naddy Exp $ --- src/netdev.c.orig Wed May 9 19:51:52 2001 +++ src/netdev.c Thu Jun 14 11:09:05 2001 @@ -22,7 +22,9 @@ Boston, MA 02111-1307, USA. */ @@ -14,18 +11,3 @@ $OpenBSD: patch-netdev_c,v 1.2 2001/07/13 13:30:03 naddy Exp $ #include #include #include -@@ -37,6 +39,14 @@ Boston, MA 02111-1307, USA. */ - static char rcsid[]="$Id: patch-netdev_c,v 1.2 2001/07/13 13:30:03 naddy Exp $"; - #endif - -+/* borrowed from FreeBSD net/if.h */ -+#ifdef __OpenBSD__ -+#define _SIZEOF_ADDR_IFREQ(ifr) \ -+((ifr).ifr_addr.sa_len > sizeof(struct sockaddr) ? \ -+ (sizeof(struct ifreq) - sizeof(struct sockaddr) + \ -+ (ifr).ifr_addr.sa_len) : sizeof(struct ifreq)) -+#endif -+ - /* - * These portion is Linux/FreeBSD specific. Please write interface-detection routines for other - * flavours of Unix if you can and want.