summaryrefslogtreecommitdiffstats
path: root/lib/libc/termios/tcflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/termios/tcflow.c')
-rw-r--r--lib/libc/termios/tcflow.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/termios/tcflow.c b/lib/libc/termios/tcflow.c
index 458999da488..0f1659691c9 100644
--- a/lib/libc/termios/tcflow.c
+++ b/lib/libc/termios/tcflow.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcflow.c,v 1.5 2005/08/05 13:03:00 espie Exp $ */
+/* $OpenBSD: tcflow.c,v 1.6 2017/09/10 18:20:00 guenther Exp $ */
/*-
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -49,7 +49,8 @@ tcflow(int fd, int action)
if (tcgetattr(fd, &term) == -1)
return (-1);
c = term.c_cc[action == TCIOFF ? VSTOP : VSTART];
- if (c != _POSIX_VDISABLE && write(fd, &c, sizeof(c)) == -1)
+ if (c != _POSIX_VDISABLE &&
+ HIDDEN(write)(fd, &c, sizeof(c)) == -1)
return (-1);
return (0);
default: