summaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2014-05-11 16:34:17 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2014-05-11 16:34:17 +0000
commit76902266ae6bd08d20532316b9c031e1f34ee232 (patch)
tree25f0f650862a636410f4e3a3ef5cf13cd6326454 /include/stdio.h
parent448f5f73dcc7efe69df16b6a875b0cf0c6f41ae3 (diff)
downloadsrc-test2-76902266ae6bd08d20532316b9c031e1f34ee232.tar.gz
src-test2-76902266ae6bd08d20532316b9c031e1f34ee232.zip
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.
Notes
Notes: svn path=/head/; revision=265881
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h
index cebc1241359d..512e60e9ac1a 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -290,7 +290,7 @@ int vsscanf(const char * __restrict, const char * __restrict, __va_list)
/*
* 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