Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 May 2014 16:34:18 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265881 - head/include
Message-ID:  <201405111634.s4BGYI8U064939@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405111634.s4BGYI8U064939>