This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch] : Avoid mkfifo in testsuite for mingw32
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 16 Jan 2004 08:00:27 +1100 (EST)
- Subject: [Patch] : Avoid mkfifo in testsuite for mingw32
Hello
Installing and testing libstdc++ for mingw32 is currently broken by use
of mkfifo in testsuite_hooks.cc. Like newlib, the mingw32 runtime
doesn't have mkfifo.
The followin patch fixes.
Danny
2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
* testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
mkfifo for mingw32.
Index: testsuite/testsuite_hooks.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/testsuite_hooks.cc,v
retrieving revision 1.18
diff -c -3 -p -r1.18 testsuite_hooks.cc
*** testsuite/testsuite_hooks.cc 12 Jan 2004 08:11:03 -0000 1.18
--- testsuite/testsuite_hooks.cc 15 Jan 2004 20:54:11 -0000
*************** namespace __gnu_test
*** 211,218 ****
int
try_mkfifo (const char* filename, mode_t mode)
{
! #ifdef _NEWLIB_VERSION
! /* Newlib does not have mkfifo. */
exit(0);
#else
return mkfifo(filename, mode);
--- 211,218 ----
int
try_mkfifo (const char* filename, mode_t mode)
{
! #if defined (_NEWLIB_VERSION) || defined (__MINGW32_VERSION)
! /* Newlib and MinGW32 do not have mkfifo. */
exit(0);
#else
return mkfifo(filename, mode);
http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.