about summary refs log tree commit diff
path: root/include/bits/stdio.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-14 05:10:10 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-14 05:10:10 -0500
commit80695b1d1e64a026c473a33965e680444e863e34 (patch)
treece661eebee55414fadb70ce322ccff6d63f078fb /include/bits/stdio.h
parent7fe308eb9fbebdd39a2e17352b172aa00b381dba (diff)
downloadmusl-80695b1d1e64a026c473a33965e680444e863e34.tar.gz
musl-80695b1d1e64a026c473a33965e680444e863e34.tar.xz
musl-80695b1d1e64a026c473a33965e680444e863e34.zip
begin namespace-cleanup of standard C headers
Diffstat (limited to 'include/bits/stdio.h')
-rw-r--r--include/bits/stdio.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/bits/stdio.h b/include/bits/stdio.h
index 0afd8b40..b4611f3f 100644
--- a/include/bits/stdio.h
+++ b/include/bits/stdio.h
@@ -5,6 +5,13 @@
 #define TMP_MAX 10000
 
 #define L_cuserid 20
-#define L_ctermid 20
 #define L_tmpnam 20
+
+#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+#define L_ctermid 20
+#endif
+
+#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
 #define P_tmpdir "/tmp"
+#endif