summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-05-11 16:34:17 +0000
committerjilles <jilles@FreeBSD.org>2014-05-11 16:34:17 +0000
commit6fa4f734bd36cf377c96a7b5dbdfbe8de05ccfdc (patch)
tree25f0f650862a636410f4e3a3ef5cf13cd6326454 /include
parente47308fc84d8eb2e6e15bb12fafc0792d878a58d (diff)
downloadFreeBSD-src-6fa4f734bd36cf377c96a7b5dbdfbe8de05ccfdc.zip
FreeBSD-src-6fa4f734bd36cf377c96a7b5dbdfbe8de05ccfdc.tar.gz
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.
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h
index cebc124..512e60e 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
OpenPOWER on IntegriCloud