diff options
| author | guozhanxin <[email protected]> | 2021-07-12 10:14:20 +0800 |
|---|---|---|
| committer | guozhanxin <[email protected]> | 2021-07-12 10:14:20 +0800 |
| commit | 40e7d5a23df65c15bb7db53fe5f77e76701fd20d (patch) | |
| tree | 4973b28b01d289dd596a097a7560f26b810db771 /components/libc/termios | |
| parent | ddc5c793a482fe44310bafe181802ad406fa1b29 (diff) | |
| parent | 5bae565f7f021ab13113fc0a9c67fc468d97de02 (diff) | |
Merge remote-tracking branch 'remotes/gitee/master'
Diffstat (limited to 'components/libc/termios')
| -rw-r--r-- | components/libc/termios/posix_termios.c | 4 | ||||
| -rw-r--r-- | components/libc/termios/posix_termios.h | 2 |
2 files changed, 2 insertions, 4 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 - diff --git a/components/libc/termios/posix_termios.h b/components/libc/termios/posix_termios.h index 5bd1999b0a..6dc5531955 100644 --- a/components/libc/termios/posix_termios.h +++ b/components/libc/termios/posix_termios.h @@ -10,8 +10,8 @@ #ifndef TERMIOS_H__ #define TERMIOS_H__ -#include <rtthread.h> #include <sys/types.h> +#include <sys/ioctl.h> #ifdef __cplusplus extern "C" { |
