This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libstdc++] testsuite tweaks, new makefile rules
- From: Phil Edwards <phil at jaj dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sun, 6 Jul 2003 00:30:21 -0400
- Subject: Re: [libstdc++] testsuite tweaks, new makefile rules
- References: <20030706031453.GA31446@disaster.jaj.com>
On Sat, Jul 05, 2003 at 11:14:53PM -0400, Phil Edwards wrote:
>
> + unlink("tmp");
> return 0;
> }
Except we don't have unlink available. I was already including <unistd.h>
in testsuite_hooks.h for a different patch. D'oh!
Fixed thus.
2003-07-06 Phil Edwards <pme@gcc.gnu.org>
* testsuite/testsuite_hooks.h: Guard against a missing unlink().
Index: testsuite/testsuite_hooks.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/testsuite_hooks.h,v
retrieving revision 1.18
diff -u -3 -p -r1.18 testsuite_hooks.h
--- testsuite/testsuite_hooks.h 5 Jul 2003 04:05:43 -0000 1.18
+++ testsuite/testsuite_hooks.h 6 Jul 2003 04:29:31 -0000
@@ -69,6 +69,11 @@
#endif
#include <list>
#include <locale>
+#ifdef _GLIBCXX_HAVE_UNISTD_H
+# include <unistd.h>
+#else
+# define unlink(x)
+#endif
namespace __gnu_cxx_test
{