mallocng/aligned_alloc: check for malloc failure
[musl] / src / termios / tcdrain.c
index c51dd40..c0e542b 100644 (file)
@@ -1,7 +1,8 @@
 #include <termios.h>
 #include <sys/ioctl.h>
+#include "syscall.h"
 
 int tcdrain(int fd)
 {
-       return ioctl(fd, TCSBRK, 1);
+       return syscall_cp(SYS_ioctl, fd, TCSBRK, 1);
 }