summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/lib/ChangeLog5
-rw-r--r--Build/source/texk/web2c/lib/texmfmp.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog
index 1472aac18ba..69b38bd4a30 100644
--- a/Build/source/texk/web2c/lib/ChangeLog
+++ b/Build/source/texk/web2c/lib/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-20 Karl Berry <karl@tug.org>
+
+ * texmfmp.c (main) [WIN32]: _setmaxstdio(2048), to increase
+ open files limit. From Akira, 19 Aug 2007 09:30:30 +0900.
+
2007-07-26 Karl Berry <karl@tug.org>
* openclose.c (recorder_record_name): fflush the recorder file,
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c
index 8b876bb42a5..cb4de56493f 100644
--- a/Build/source/texk/web2c/lib/texmfmp.c
+++ b/Build/source/texk/web2c/lib/texmfmp.c
@@ -335,7 +335,6 @@ maininit P2C(int, ac, string *, av)
#endif /* TeX */
}
-#ifndef WIN32
/* The entry point: set up for reading the command line, which will
happen in `topenin', then call the main body. */
@@ -347,13 +346,16 @@ main P2C(int, ac, string *, av)
_response (&ac, &av);
#endif
+#ifdef WIN32
+ _setmaxstdio(2048);
+#endif
+
maininit(ac, av);
/* Call the real main program. */
mainbody ();
return EXIT_SUCCESS;
}
-#endif /* ! WIN32 */
/* This is supposed to ``open the terminal for input'', but what we
really do is copy command line arguments into TeX's or Metafont's