about summary refs log tree commit diff
path: root/arch/mipsn32/bits
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-03-10 18:08:02 -0500
committerRich Felker <dalias@aerifal.cx>2018-03-10 18:19:41 -0500
commiteb5ae94016f0e3e4fb7d0715346b09335f14655d (patch)
tree6b6509f8cff541a147f49aa359791ee60ad711e3 /arch/mipsn32/bits
parentf9c2498fee1c94adf00e788863d2d4544d1d1ec0 (diff)
downloadmusl-eb5ae94016f0e3e4fb7d0715346b09335f14655d.tar.gz
musl-eb5ae94016f0e3e4fb7d0715346b09335f14655d.tar.xz
musl-eb5ae94016f0e3e4fb7d0715346b09335f14655d.zip
fix minor namespace issues in termios.h
the output delay features (NL*, CR*, TAB*, BS*, and VT*) are
XSI-shaded. VT* is in the V* namespace reservation but the rest need
to be suppressed in base POSIX namespace.

unfortunately this change introduces feature test macro checks into
another bits header. at some point these checks should be simplified
by having features.h handle the "FTM X implies Y" relationships.
Diffstat (limited to 'arch/mipsn32/bits')
-rw-r--r--arch/mipsn32/bits/termios.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mipsn32/bits/termios.h b/arch/mipsn32/bits/termios.h
index 692e58be..f7b9dd2e 100644
--- a/arch/mipsn32/bits/termios.h
+++ b/arch/mipsn32/bits/termios.h
@@ -52,6 +52,7 @@ struct termios {
 #define ONLRET 0000040
 #define OFILL  0000100
 #define OFDEL  0000200
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_XOPEN_SOURCE)
 #define NLDLY  0000400
 #define NL0    0000000
 #define NL1    0000400
@@ -71,6 +72,7 @@ struct termios {
 #define FFDLY  0100000
 #define FF0    0000000
 #define FF1    0100000
+#endif
 
 #define VTDLY  0040000
 #define VT0    0000000