🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #345

make HP-UX: job.c patch

#345
From: Dave Barrett
Date: Thu, 03 Aug 1989 23:31
58 lines
1912 bytes
*** 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));
Technical Details
Message-ID: <8908032331.AA20944@hpisldab.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!HPLABS.HP.COM!barrett%hpisldab

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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