[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: manyfiles test fails on Solaris
From: |
Paul Eggert |
Subject: |
Re: manyfiles test fails on Solaris |
Date: |
Fri, 7 Sep 2001 14:08:29 -0700 (PDT) |
That's a known problem with Solaris. See 'Solaris Problem #2' in
README_d/README.solaris.
There is a workaround in that file, but surely it is better to fix the
problem for all uses of gawk on Solaris, as opposed to just fixing it
for that test. I see that there's a hook in the code to do just that,
but it uses the wrong macro name. Here's a patch.
2001-09-07 Paul Eggert <address@hidden>
* io.c (redirect): When deciding to use the fdopen bug hack,
use "__sun" rather than "solaris". No compilers predefine
"solaris", but both GCC and Sun C predefine "__sun".
===================================================================
RCS file: io.c,v
retrieving revision 3.1.0.1
retrieving revision 3.1.0.2
diff -pu -r3.1.0.1 -r3.1.0.2
--- io.c 2001/08/13 17:06:44 3.1.0.1
+++ io.c 2001/09/07 19:14:16 3.1.0.2
@@ -591,7 +591,7 @@ redirect(NODE *tree, int *errflg)
/* too many files open -- close one and try again */
if (errno == EMFILE || errno == ENFILE)
close_one();
-#if defined __MINGW32__ || defined solaris
+#if defined __MINGW32__ || defined __sun
else if (errno == 0) /* HACK! */
close_one();
#endif