Subject: Broken libc/net/getaddrinfo.c in !INET6 case
To: None <current-users@netbsd.org>
From: Scott Ellis <scotte@warped.com>
List: current-users
Date: 06/28/2007 18:29:54
The latest change to getaddrinfo.c seems to have missed a spot in 
modifying explore_numeric().  If INET6 isn't defined, then we need to 
add the last argument to the explore_numeric() call, as below:

--- getaddrinfo.c.orig  2007-06-28 16:45:38.000000000 -0700
+++ getaddrinfo.c       2007-06-28 18:11:49.000000000 -0700
@@ -766,7 +766,7 @@
      const char *servname, struct addrinfo **res, struct servent_data *svd)
  {
  #if !defined(SCOPE_DELIMITER) || !defined(INET6)
-       return explore_numeric(pai, hostname, servname, res, hostname);
+       return explore_numeric(pai, hostname, servname, res, hostname, svd);
  #else
         const struct afd *afd;
         struct addrinfo *cur;


This at least makes it compile.  I haven't check for operational 
correctness yet.

	ScottE