Bug 60118 - further updated / patch approved by author of scrollz [irc/scrollz]
Summary: further updated / patch approved by author of scrollz [irc/scrollz]
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-10 21:00 UTC by Scott M. Likens
Modified: 2003-12-10 22:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott M. Likens 2003-12-10 21:00:11 UTC

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.

Fix: 

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;--g7JuZjYzeTCA48u87lrUswO3bazX7RvhS1MQHw2MlN6f33dN
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

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);
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.
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2003-12-10 22:17:12 UTC
State Changed
From-To: open->closed

Committed, thanks!