fix wrong return value from wmemmove on forward copies
[musl] / src / termios / tcdrain.c
index c51dd40..6e43afb 100644 (file)
@@ -1,7 +1,9 @@
 #include <termios.h>
 #include <sys/ioctl.h>
+#include "libc.h"
+#include "syscall.h"
 
 int tcdrain(int fd)
 {
-       return ioctl(fd, TCSBRK, 1);
+       return syscall_cp(SYS_ioctl, fd, TCSBRK, 1);
 }