From owner-svn-src-head@FreeBSD.ORG Thu Jun 26 14:24:31 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D1838633; Thu, 26 Jun 2014 14:24:31 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BF1962E95; Thu, 26 Jun 2014 14:24:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5QEOVag021001; Thu, 26 Jun 2014 14:24:31 GMT (envelope-from ume@svn.freebsd.org) Received: (from ume@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5QEOVdO021000; Thu, 26 Jun 2014 14:24:31 GMT (envelope-from ume@svn.freebsd.org) Message-Id: <201406261424.s5QEOVdO021000@svn.freebsd.org> From: Hajimu UMEMOTO Date: Thu, 26 Jun 2014 14:24:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267915 - head/lib/libc/net X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2014 14:24:31 -0000 Author: ume Date: Thu Jun 26 14:24:31 2014 New Revision: 267915 URL: http://svnweb.freebsd.org/changeset/base/267915 Log: Fix build with WITHOUT_INET6. Spotted by: bf MFC after: 1 week Modified: head/lib/libc/net/getaddrinfo.c Modified: head/lib/libc/net/getaddrinfo.c ============================================================================== --- head/lib/libc/net/getaddrinfo.c Thu Jun 26 13:57:44 2014 (r267914) +++ head/lib/libc/net/getaddrinfo.c Thu Jun 26 14:24:31 2014 (r267915) @@ -1546,7 +1546,9 @@ addrconfig(struct addrinfo *pai) { struct ifaddrs *ifaddrs, *ifa; struct sockaddr_in *sin; +#ifdef INET6 struct sockaddr_in6 *sin6; +#endif int seen_inet = 0, seen_inet6 = 0; if (getifaddrs(&ifaddrs) != 0)