Accomodate older glibc, which also lacks the module syscalls
[oweals/busybox.git] / gunzip.c
index c4e84260b20c9c6559003a7fb8c8e91453f9743d..430bc630efc80daef9949eac46ab431d4fa9ab18 100644 (file)
--- a/gunzip.c
+++ b/gunzip.c
@@ -118,6 +118,9 @@ extern int gunzip_main(int argc, char **argv)
                /* Open input file */
                in_file = xfopen(if_name, "r");
 
+               /* set the buffer size */
+               setvbuf(in_file, NULL, _IOFBF, 0x8000);
+
                /* Get the time stamp on the input file. */
                if (stat(if_name, &stat_buf) < 0) {
                        error_msg_and_die("Couldn't stat file %s", if_name);