summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/termios.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/termios.c')
-rw-r--r--lib/libc/gen/termios.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/gen/termios.c b/lib/libc/gen/termios.c
index 466827e..f321876 100644
--- a/lib/libc/gen/termios.c
+++ b/lib/libc/gen/termios.c
@@ -195,7 +195,9 @@ __tcdrain(fd)
return (ioctl(fd, TIOCDRAIN, 0));
}
+#ifndef _THREAD_SAFE
__weak_reference(__tcdrain, tcdrain);
+#endif
int
tcflush(fd, which)
OpenPOWER on IntegriCloud