Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!HPLABS.HP.COM!barrett%hpisldab From: barrett%hpisldab@HPLABS.HP.COM (Dave Barrett) Newsgroups: gnu.utils.bug Subject: make HP-UX: job.c patch Message-ID: <8908032331.AA20944@hpisldab.HP.COM> Date: 3 Aug 89 23:31:38 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 58 *** make-3.54/job.c Thu Jun 22 19:50:17 1989 --- make-hp/job.c Thu Aug 3 16:25:02 1989 *************** *** 16,21 along with GNU Make; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "make.h" #include "commands.h" #include "job.h" --- 16,27 ----- along with GNU Make; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + #include + #ifdef HPUX + #include + #define getdtablesize(x) NOFILE + #endif + #include "make.h" #include "commands.h" #include "job.h" *************** *** 47,52 #define WTERMSIG(x) ((x).w_termsig) #define WCOREDUMP(x) ((x).w_coredump) #define WRETCODE(x) ((x).w_retcode) #include #include --- 53,59 ----- #define WTERMSIG(x) ((x).w_termsig) #define WCOREDUMP(x) ((x).w_coredump) #define WRETCODE(x) ((x).w_retcode) + #define WIFSIGNALED(x) (WTERMSIG (x) != 0) #include #include *************** *** 141,146 unblock_children () { #ifdef USG (void) signal (SIGCLD, child_handler); #else (void) sigsetmask (sigblock (0) & ~sigmask (SIGCHLD)); --- 148,154 ----- unblock_children () { #ifdef USG + extern int child_handler(); (void) signal (SIGCLD, child_handler); #else (void) sigsetmask (sigblock (0) & ~sigmask (SIGCHLD));