barrett%hpisldab@HPLABS.HP.COM (Dave Barrett) (08/04/89)
*** 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 <errno.h>
+ #ifdef HPUX
+ #include <sys/param.h>
+ #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 <sys/time.h>
#include <sys/resource.h>
--- 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 <sys/time.h>
#include <sys/resource.h>
***************
*** 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));