Subject: pkg/34883: pkg: net/mDNSResponder build fix for Solaris
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <vs+netbsd@iist.unu.edu>
List: pkgsrc-bugs
Date: 10/23/2006 02:30:01
>Number:         34883
>Category:       pkg
>Synopsis:       pkg: net/mDNSResponder build fix for Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 23 02:30:00 +0000 2006
>Originator:     Volker Stolz
>Release:        n/a
>Organization:
UNU/IIST
>Environment:
SunOS pc124.iist.unu.edu 5.10 Generic_118855-19 i86pc i386 i86pc
>Description:
On Solaris, IPv4 and IPv6 headers seem to exists in the same file, the IPv6 includes lead to a compile error as the include does not exist.

>How-To-Repeat:

>Fix:
Index: patches/patch-ac
===================================================================
RCS file: /cvsroot/pkgsrc/net/mDNSResponder/patches/patch-ac,v
retrieving revision 1.3
diff -u -r1.3 patch-ac
--- patches/patch-ac    17 Jul 2006 20:51:06 -0000      1.3
+++ patches/patch-ac    20 Oct 2006 04:10:11 -0000
@@ -1,11 +1,13 @@
-$NetBSD: patch-ac,v 1.3 2006/07/17 20:51:06 joerg Exp $
-
---- mDNSPosix/mDNSUNP.c.orig   2006-07-17 20:46:34.000000000 +0000
+--- mDNSPosix/mDNSUNP.c.orig   Tue Feb 21 05:40:36 2006
++++ mDNSPosix/mDNSUNP.c        Fri Oct 20 11:51:47 2006
+--- mDNSPosix/mDNSUNP.c.orig   2006-02-21 05:40:36.000000000 +0800
 +++ mDNSPosix/mDNSUNP.c
-@@ -154,6 +154,9 @@ First checkin
+@@ -153,7 +153,10 @@ First checkin
+     #include <net/if_dl.h>
  #endif
  
- #if defined(AF_INET6) && HAVE_IPV6 && !HAVE_LINUX
+-#if defined(AF_INET6) && HAVE_IPV6 && !HAVE_LINUX
++#if defined(AF_INET6) && HAVE_IPV6 && !HAVE_LINUX && !defined(sun)
 +#if defined(__FreeBSD__) || defined(__DragonFly__)
 +#include <net/if_var.h>
 +#endif