This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libstdc++] testsuite tweaks, new makefile rules


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
 {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]