summaryrefslogtreecommitdiff
path: root/libc/termios/termios.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/termios/termios.c')
-rw-r--r--libc/termios/termios.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/termios/termios.c b/libc/termios/termios.c
index 24448c0e4..08bf0991b 100644
--- a/libc/termios/termios.c
+++ b/libc/termios/termios.c
@@ -42,11 +42,12 @@ int isatty(int fd)
#ifdef L_tcdrain
/* Wait for pending output to be written on FD. */
-int tcdrain (int fd)
+int __libc_tcdrain (int fd)
{
/* With an argument of 1, TCSBRK waits for the output to drain. */
return ioctl(fd, TCSBRK, 1);
}
+weak_alias(__libc_tcdrain, tcdrain)
#endif
#ifdef L_tcflow