From owner-svn-src-all@FreeBSD.ORG Sun May 11 16:34:18 2014 Return-Path: Delivered-To: svn-src-all@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 45721B50; Sun, 11 May 2014 16:34:18 +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 32B7920D0; Sun, 11 May 2014 16:34:18 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4BGYIHv064940; Sun, 11 May 2014 16:34:18 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4BGYI8U064939; Sun, 11 May 2014 16:34:18 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201405111634.s4BGYI8U064939@svn.freebsd.org> From: Jilles Tjoelker Date: Sun, 11 May 2014 16:34:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r265881 - 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-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2014 16:34:18 -0000 Author: jilles Date: Sun May 11 16:34:17 2014 New Revision: 265881 URL: http://svnweb.freebsd.org/changeset/base/265881 Log: include: Don't expose L_cuserid in strict C standard compliance mode. L_cuserid is supposed to be exposed only for old POSIX, or in the default (expose everything) environment. Modified: head/include/stdio.h Modified: head/include/stdio.h ============================================================================== --- head/include/stdio.h Sun May 11 15:03:24 2014 (r265880) +++ head/include/stdio.h Sun May 11 16:34:17 2014 (r265881) @@ -290,7 +290,7 @@ int vsscanf(const char * __restrict, co /* * Functions defined in all versions of POSIX 1003.1. */ -#if __BSD_VISIBLE || __POSIX_VISIBLE <= 199506 +#if __BSD_VISIBLE || (__POSIX_VISIBLE && __POSIX_VISIBLE <= 199506) #define L_cuserid 17 /* size for cuserid(3); MAXLOGNAME, legacy */ #endif