summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/sftp-int.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/sftp-int.c')
-rw-r--r--crypto/openssh/sftp-int.c7
1 files changed, 5 insertions, 2 deletions
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 <glob.h>
-
#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;
OpenPOWER on IntegriCloud