summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perlio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perlio.h b/perlio.h
index 479a44f496..0575cb17bd 100644
--- a/perlio.h
+++ b/perlio.h
@@ -191,7 +191,7 @@ PERL_EXPORT_C void PerlIO_clone(pTHX_ PerlInterpreter *proto,
/* The default buffer size for the perlio buffering layer */
#ifndef PERLIOBUF_DEFAULT_BUFSIZ
-#define PERLIOBUF_DEFAULT_BUFSIZ 4096
+#define PERLIOBUF_DEFAULT_BUFSIZ (BUFSIZ > 8192 ? BUFSIZ : 8192)
#endif
#ifndef SEEK_SET