From bb02848f18878bddada7a9f55b110116f63c2f3c Mon Sep 17 00:00:00 2001 From: des Date: Thu, 27 Jun 2002 22:31:32 +0000 Subject: Vendor import of OpenSSH 3.3p1. --- crypto/openssh/sftp-int.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crypto/openssh/sftp-int.c') diff --git a/crypto/openssh/sftp-int.c b/crypto/openssh/sftp-int.c index d433141..5b1d384 100644 --- a/crypto/openssh/sftp-int.c +++ b/crypto/openssh/sftp-int.c @@ -28,8 +28,6 @@ #include "includes.h" RCSID("$OpenBSD: sftp-int.c,v 1.46 2002/03/30 18:51:15 markus Exp $"); -#include - #include "buffer.h" #include "xmalloc.h" #include "log.h" @@ -894,8 +892,13 @@ interactive_loop(int fd_in, int fd_out, char *file1, char *file2) } xfree(dir); } +#if HAVE_SETVBUF setvbuf(stdout, NULL, _IOLBF, 0); setvbuf(infile, NULL, _IOLBF, 0); +#else + setlinebuf(stdout); + setlinebuf(infile); +#endif for (;;) { char *cp; -- cgit v1.1