- check for setlinebuf() in autoconf. Apparently HPUX doesn't have it
[rsync/rsync.git] / main.c
diff --git a/main.c b/main.c
index 3fbdea1..d289a58 100644 (file)
--- a/main.c
+++ b/main.c
@@ -730,8 +730,10 @@ int main(int argc,char *argv[])
 
     setup_protocol(f_out,f_in);
 
+#if HAVE_SETLINEBUF
     setlinebuf(FINFO);
     setlinebuf(FERROR);
+#endif
 
     if (verbose > 3) 
       fprintf(FERROR,"parent=%d child=%d sender=%d recurse=%d\n",