From owner-svn-src-head@FreeBSD.ORG Tue Nov 25 02:15:09 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B66401065670; Tue, 25 Nov 2008 02:15:09 +0000 (UTC) (envelope-from avatar@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A49598FC12; Tue, 25 Nov 2008 02:15:09 +0000 (UTC) (envelope-from avatar@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mAP2F9bB005022; Tue, 25 Nov 2008 02:15:09 GMT (envelope-from avatar@svn.freebsd.org) Received: (from avatar@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mAP2F9EG005021; Tue, 25 Nov 2008 02:15:09 GMT (envelope-from avatar@svn.freebsd.org) Message-Id: <200811250215.mAP2F9EG005021@svn.freebsd.org> From: Tai-hwa Liang Date: Tue, 25 Nov 2008 02:15:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185277 - head/lib/libutil X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 25 Nov 2008 02:15:09 -0000 Author: avatar Date: Tue Nov 25 02:15:09 2008 New Revision: 185277 URL: http://svn.freebsd.org/changeset/base/185277 Log: Fixing !INET6 builds. Modified: head/lib/libutil/realhostname.c Modified: head/lib/libutil/realhostname.c ============================================================================== --- head/lib/libutil/realhostname.c Tue Nov 25 02:05:01 2008 (r185276) +++ head/lib/libutil/realhostname.c Tue Nov 25 02:15:09 2008 (r185277) @@ -100,7 +100,9 @@ realhostname_sa(char *host, size_t hsize { int result, error; char buf[NI_MAXHOST]; +#ifdef INET6 struct sockaddr_in lsin; +#endif result = HOSTNAME_INVALIDADDR;