[Patch] : Avoid mkfifo in testsuite for mingw32
Danny Smith
danny_r_smith_2001@yahoo.co.nz
Thu Jan 15 21:00:00 GMT 2004
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.
More information about the Libstdc++
mailing list