make fgetwc handling of encoding errors consistent with/without buffer
[oweals/musl.git] / src / termios / tcdrain.c
index c51dd401fea4f223b91d251b52acbfff169f1d06..6e43afb7564001143ad096e85cb6ba2a93462262 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);
 }