From owner-svn-src-head@freebsd.org Tue May 31 12:29:22 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CDD9BB5482F; Tue, 31 May 2016 12:29:22 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 9F5F11B17; Tue, 31 May 2016 12:29:22 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4VCTLIc003682; Tue, 31 May 2016 12:29:21 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4VCTL3D003681; Tue, 31 May 2016 12:29:21 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201605311229.u4VCTL3D003681@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Tue, 31 May 2016 12:29:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301035 - head/include 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.22 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, 31 May 2016 12:29:22 -0000 Author: ed Date: Tue May 31 12:29:21 2016 New Revision: 301035 URL: https://svnweb.freebsd.org/changeset/base/301035 Log: Make strfmon_l() work without requiring the use of . The strfmon_l() function provided by is also part of POSIX 2008's , so it should be exposed by default. Change the check used in to be similar to the one that's part of , where we both test for __POSIX_VISIBLE and _XLOCALE_H_. Modified: head/include/monetary.h Modified: head/include/monetary.h ============================================================================== --- head/include/monetary.h Tue May 31 11:32:09 2016 (r301034) +++ head/include/monetary.h Tue May 31 12:29:21 2016 (r301035) @@ -43,7 +43,7 @@ typedef __ssize_t ssize_t; #endif __BEGIN_DECLS -#ifdef _XLOCALE_H_ +#if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_) #include #endif ssize_t strfmon(char * __restrict, size_t, const char * __restrict, ...);