summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-05-23 00:30:29 +0800
committerMeco Man <[email protected]>2021-05-23 00:30:29 +0800
commit07cab33b50107e71b9fb22230f07c33030e8fc82 (patch)
treee2598f90e0858a4594c338997be0f7f32360634a
parent5bce56473857e9145b34c77b4355494744838e37 (diff)
add sys/ioctl.h for pipe.c
-rw-r--r--components/drivers/src/pipe.c1
-rw-r--r--components/libc/termios/posix_termios.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/components/drivers/src/pipe.c b/components/drivers/src/pipe.c
index 236c1ffec7..0e35248480 100644
--- a/components/drivers/src/pipe.c
+++ b/components/drivers/src/pipe.c
@@ -16,6 +16,7 @@
#include <dfs_file.h>
#include <dfs_posix.h>
#include <dfs_poll.h>
+#include <sys/ioctl.h>
static int pipe_fops_open(struct dfs_fd *fd)
{
diff --git a/components/libc/termios/posix_termios.c b/components/libc/termios/posix_termios.c
index 01ba010c86..1816bbae57 100644
--- a/components/libc/termios/posix_termios.c
+++ b/components/libc/termios/posix_termios.c
@@ -9,9 +9,7 @@
*/
#include <stdlib.h>
#include <string.h>
-#include <rtthread.h>
#include <dfs_posix.h>
-
#include <termios.h>
int tcgetattr(int fd, struct termios *tio)
@@ -128,4 +126,3 @@ int cfsetspeed(struct termios *tio, speed_t speed)
return cfsetospeed(tio, speed);
}
#endif
-