Browse Source

add sys/ioctl.h for pipe.c

Meco Man 4 years ago
parent
commit
07cab33b50
2 changed files with 1 additions and 3 deletions
  1. 1 0
      components/drivers/src/pipe.c
  2. 0 3
      components/libc/termios/posix_termios.c

+ 1 - 0
components/drivers/src/pipe.c

@@ -16,6 +16,7 @@
 #include <dfs_file.h>
 #include <dfs_file.h>
 #include <dfs_posix.h>
 #include <dfs_posix.h>
 #include <dfs_poll.h>
 #include <dfs_poll.h>
+#include <sys/ioctl.h>
 
 
 static int pipe_fops_open(struct dfs_fd *fd)
 static int pipe_fops_open(struct dfs_fd *fd)
 {
 {

+ 0 - 3
components/libc/termios/posix_termios.c

@@ -9,9 +9,7 @@
  */
  */
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>
-#include <rtthread.h>
 #include <dfs_posix.h>
 #include <dfs_posix.h>
-
 #include <termios.h>
 #include <termios.h>
 
 
 int tcgetattr(int fd, struct termios *tio)
 int tcgetattr(int fd, struct termios *tio)
@@ -128,4 +126,3 @@ int cfsetspeed(struct termios *tio, speed_t speed)
     return cfsetospeed(tio, speed);
     return cfsetospeed(tio, speed);
 }
 }
 #endif
 #endif
-