summaryrefslogtreecommitdiff
path: root/components/libc/termios/posix_termios.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/libc/termios/posix_termios.c')
-rw-r--r--components/libc/termios/posix_termios.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/libc/termios/posix_termios.c b/components/libc/termios/posix_termios.c
index 01ba010c86..9f33c857e6 100644
--- a/components/libc/termios/posix_termios.c
+++ b/components/libc/termios/posix_termios.c
@@ -9,9 +9,8 @@
*/
#include <stdlib.h>
#include <string.h>
-#include <rtthread.h>
#include <dfs_posix.h>
-
+#include <sys/errno.h>
#include <termios.h>
int tcgetattr(int fd, struct termios *tio)
@@ -128,4 +127,3 @@ int cfsetspeed(struct termios *tio, speed_t speed)
return cfsetospeed(tio, speed);
}
#endif
-