diff --git a/components/libc/posix/io/termios/termios.c b/components/libc/posix/io/termios/termios.c index 8333b594bf5d6dc9427df50c36ff4be613c55d3a..84061079d9ad0a93aac4d0bf3e72cb644f0c4ea4 100644 --- a/components/libc/posix/io/termios/termios.c +++ b/components/libc/posix/io/termios/termios.c @@ -111,7 +111,6 @@ int tcdrain(int fd) return 0; } -#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) void cfmakeraw(struct termios *t) { t->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); @@ -127,4 +126,3 @@ int cfsetspeed(struct termios *tio, speed_t speed) { return cfsetospeed(tio, speed); } -#endif diff --git a/components/libc/posix/io/termios/termios.h b/components/libc/posix/io/termios/termios.h index 27f2db85b0428746e05b8012d3fd667e1bb1cc25..8553b0191860e672b0ffd23569d7aabc9b10087c 100644 --- a/components/libc/posix/io/termios/termios.h +++ b/components/libc/posix/io/termios/termios.h @@ -202,10 +202,8 @@ int tcflow (int, int); pid_t tcgetsid (int); -#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) void cfmakeraw(struct termios *); int cfsetspeed(struct termios *, speed_t); -#endif #ifdef __cplusplus }