fix integer overflow in WIFSTOPPED macro
[musl] / arch / mips / bits / termios.h
index 55ba132..9d571f7 100644 (file)
@@ -1,5 +1,4 @@
-struct termios
-{
+struct termios {
        tcflag_t c_iflag;
        tcflag_t c_oflag;
        tcflag_t c_cflag;
@@ -53,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
@@ -72,6 +72,7 @@ struct termios
 #define FFDLY  0100000
 #define FF0    0000000
 #define FF1    0100000
+#endif
 
 #define VTDLY  0040000
 #define VT0    0000000