Newsgroups: gnu.utils.bug
Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!oxtrap!rich
From: rich@oxtrap.sendai.ann-arbor.mi.us (K. Richard Magill)
Subject: make-3.55 fails to link under ultrix (w/patch)
Message-ID: <RICH.89Sep7170602@oxtrap.sendai.ann-arbor.mi.us>
Reply-to: rich@oxtrap.UUCP
Sender: rich@oxtrap.uucp (K. Richard Magill)
Organization: Digital Works, Ltd. - Ann Arbor, MI
Date: Thu, 7 Sep 89 21:06:07 GMT

More or less self explanatory.  WCOREDUMP was originally undefined at
link time.

*** job.c-dist	Thu Sep  7 16:58:40 1989
--- job.c	Thu Sep  7 16:51:39 1989
***************
*** 42,48 ****
  extern int wait3 ();
  #endif
  
! #ifdef	WTERMSIG
  #define	WAIT_T int
  #else
  
--- 42,48 ----
  extern int wait3 ();
  #endif
  
! #if defined(WTERMSIG) && !defined(ultrix)
  #define	WAIT_T int
  #else
  
***************
*** 58,66 ****
  #else	/* Have <sys/wait.h> or not USG.  */
  
  #define WAIT_T union wait
  #define WTERMSIG(x) ((x).w_termsig)
! #define WCOREDUMP(x) ((x).w_coredump)
  #define WEXITSTATUS(x) ((x).w_retcode)
  #ifndef	WIFSIGNALED
  #define	WIFSIGNALED(x)	(WTERMSIG(x) != 0)
  #endif
--- 58,74 ----
  #else	/* Have <sys/wait.h> or not USG.  */
  
  #define WAIT_T union wait
+ 
+ #if !defined(WTERMSIG)
  #define WTERMSIG(x) ((x).w_termsig)
! #endif /* WTERMSIG */
! 
! #if !defined(WEXITSTATUS)
  #define WEXITSTATUS(x) ((x).w_retcode)
+ #endif /* WEXITSTATUS */
+ 
+ #define WCOREDUMP(x) ((x).w_coredump)
+ 
  #ifndef	WIFSIGNALED
  #define	WIFSIGNALED(x)	(WTERMSIG(x) != 0)
  #endif


--
rich.
-- 
rich.
