From damm@yazzy.org  Wed Dec 10 12:50:31 2003
Return-Path: <damm@yazzy.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id ABD6E16A520
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 10 Dec 2003 12:50:31 -0800 (PST)
Received: from acheron.livid.de (portal.aphroland.org [216.39.174.24])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7FA6A43D13
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 10 Dec 2003 12:50:30 -0800 (PST)
	(envelope-from damm@yazzy.org)
Received: from acheron.livid.de (localhost [127.0.0.1])
	by acheron.livid.de (Postfix) with ESMTP id D9A257335
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 10 Dec 2003 12:50:28 -0800 (PST)
Message-Id: 1071089428@acheron.livid.de
Date: Wed, 10 Dec 2003 12:50:28 -0800
From: "Scott M. Likens" <damm@yazzy.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: further updated / patch approved by author of scrollz [irc/scrollz]
X-Send-Pr-Version: gtk-send-pr 0.1 
X-GNATS-Notify:

>Number:         60118
>Category:       ports
>Synopsis:       further updated / patch approved by author of scrollz [irc/scrollz]
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 10 13:00:11 PST 2003
>Closed-Date:    Wed Dec 10 14:17:23 PST 2003
>Last-Modified:  Wed Dec 10 14:17:23 PST 2003
>Originator:     Scott M. Likens
>Release:        FreeBSD 5.1-RELEASE-p10 i386
>Organization:
>Environment:


System: FreeBSD acheron.livid.de 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0: Sun Oct 19 17:30:10 PDT 2003     damm@acheron.livid.de:/usr/src/sys/i386/compile/LIVID i386  


>Description:


Further updated patch, spoken to the author of scrollz and he approves of patch and will take note of it in future release of scrollz.


>How-To-Repeat:


remove old patch-source-ircaux.c and use this one.

Due to old depreciated items, this patch allows ipv6 to work
properly with said patch.


>Fix:


diff -urN source.old/ircaux.c source/ircaux.c
--- source.old/ircaux.c Tue Nov 18 17:05:41 2003
+++ source/ircaux.c     Tue Nov 18 17:05:25 2003
@@ -861,20 +861,20 @@
        err = getaddrinfo(localhost, localport, &hintsx, &res0x);

        if (err != 0)
-#if defined(__linux__) && 0
-               /*
-                * Due to bug in glibc implementation in getaddrinfo() we always
-                * return -10.   This will be fixed, soon
-                */
-               return -10;
-#else
-       {
+{
+/* Dirty little hack here, brought to us by ircII-20030709 damm@yazzy.org */
+# ifndef EAI_ADDRFAMILY
+#  ifdef EAI_FAMILY
+#   define EAI_ADDRFAMILY EAI_FAMILY
+#  else
+#   error "no EAI_ADDRFAMILY or EAI_FAMILY"
+#  endif
+# endif
                if (err == EAI_ADDRFAMILY)
                               else
                        return -2;
        }
-#endif
        err = -1;
        for (resx = res0x; resx; resx = resx->ai_next)
        {
         return -10;



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Wed Dec 10 14:17:12 PST 2003 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60118 
>Unformatted:
