summaryrefslogtreecommitdiff
path: root/libc/termios/tcdrain.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/termios/tcdrain.c')
-rw-r--r--libc/termios/tcdrain.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/termios/tcdrain.c b/libc/termios/tcdrain.c
index 766f37e28..ad94803ff 100644
--- a/libc/termios/tcdrain.c
+++ b/libc/termios/tcdrain.c
@@ -20,10 +20,13 @@
#include <termios.h>
#include <sys/ioctl.h>
-/* libc_hidden_proto(ioctl) */
+#ifdef __LINUXTHREADS_OLD__
+extern __typeof(tcdrain) weak_function tcdrain;
+strong_alias(tcdrain,__libc_tcdrain)
+#endif
/* Wait for pending output to be written on FD. */
int tcdrain(int fd)
{
- return ioctl(fd, TCSBRK, 1);
+ return ioctl(fd, TCSBRK, 1);
}