This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[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.


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