summaryrefslogtreecommitdiff
path: root/sftp-int.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-05-09 00:38:19 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-05-09 00:38:19 +0000
commit6aebb340fb7a9f2a2184482b9088ef57c83e1a5f (patch)
treefad933d05fe6c9b290f88d6b3fcd5ede20b4719e /sftp-int.c
parent56b9d459ff99643b2f607e1f156690c9077bfc1a (diff)
- (bal) Updates from the Sony NEWS-OS platform by NAKAJI Hiroyuki
<nakaji@tutrp.tut.ac.jp>
Diffstat (limited to 'sftp-int.c')
-rw-r--r--sftp-int.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sftp-int.c b/sftp-int.c
index 46e405e0..03b22999 100644
--- a/sftp-int.c
+++ b/sftp-int.c
@@ -889,8 +889,13 @@ interactive_loop(int fd_in, int fd_out, char *file1, char *file2)
return;
}
}
+#if HAVE_SETVBUF
setvbuf(stdout, NULL, _IOLBF, 0);
setvbuf(infile, NULL, _IOLBF, 0);
+#else
+ setlinebuf(stdout);
+ setlinebuf(infile);
+#endif
for(;;) {
char *cp;