From 147041d26029fabdb35b596a1d3bcbb40c3de975 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 25 Feb 2009 11:06:29 +0000 Subject: Reinstate __libc_foo's needed for linuxthreads.old. Now they are only enabled if linuxthreads.old are selected. --- libc/termios/tcdrain.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libc/termios') 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 #include -/* 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); } -- cgit v1.2.3