Index: src/include/port/win32.h
===================================================================
RCS file: /cvsroot/pgsql/src/include/port/win32.h,v
retrieving revision 1.53
diff -c -c -r1.53 win32.h
*** src/include/port/win32.h	16 Jul 2006 20:17:04 -0000	1.53
--- src/include/port/win32.h	28 Jul 2006 19:01:07 -0000
***************
*** 109,120 ****
  
  
  /*
!  * Signal stuff
   */
! #define WEXITSTATUS(w)	(((w) >> 8) & 0xff)
! #define WIFEXITED(w)	(((w) & 0xff) == 0)
! #define WIFSIGNALED(w)	(((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f))
! #define WTERMSIG(w)		((w) & 0x7f)
  
  #define sigmask(sig) ( 1 << ((sig)-1) )
  
--- 109,125 ----
  
  
  /*
!  *	Signal stuff
!  *	WIN32 doesn't have wait(), so the return value for children
!  *	is simply the return value specified by the child, without
!  *	any additional information on whether the child terminated
!  *	on its own or via a signal.  These macros are also used
!  *	to interpret the return value of system().
   */
! #define WEXITSTATUS(w)	(w)
! #define WIFEXITED(w)	(true)
! #define WIFSIGNALED(w)	(false)
! #define WTERMSIG(w)		(0)
  
  #define sigmask(sig) ( 1 << ((sig)-1) )
  
Index: src/test/regress/pg_regress.c
===================================================================
RCS file: /cvsroot/pgsql/src/test/regress/pg_regress.c,v
retrieving revision 1.16
diff -c -c -r1.16 pg_regress.c
*** src/test/regress/pg_regress.c	27 Jul 2006 15:37:19 -0000	1.16
--- src/test/regress/pg_regress.c	28 Jul 2006 19:01:12 -0000
***************
*** 813,823 ****
  	 * work for inspecting the results of system().  For the moment,
  	 * hard-wire the check on Windows.
  	 */
- #ifndef WIN32
  	if (!WIFEXITED(r) || WEXITSTATUS(r) > 1)
- #else
- 	if (r != 0 && r != 1)
- #endif
  	{
  		fprintf(stderr, _("diff command failed with status %d: %s\n"), r, cmd);
  		exit_nicely(2);
--- 813,819 ----
