signame.c: Change #ifdef SYS_SIGLIST_MISSING to #if.

param-no-tm.h: Define SYS_SIGLIST_MISSING from USG.
This commit is contained in:
Jim Kingdon 1991-04-20 01:02:34 +00:00
parent ab8f22a975
commit ff8aef1993
3 changed files with 11 additions and 5 deletions

View File

@ -25,6 +25,8 @@ Fri Apr 19 09:36:50 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
before we compile it.
defs.h: Protect against multiple inclusion.
param.h: Include defs.h.
signame.c: Change #ifdef SYS_SIGLIST_MISSING to #if.
param-no-tm.h: Define SYS_SIGLIST_MISSING from USG.
Thu Apr 18 19:49:10 1991 Jim Kingdon (kingdon at cygint.cygnus.com)

View File

@ -73,4 +73,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define ADDR_BITS_SET(addr) (addr)
#endif /* No ADDR_BITS_REMOVE. */
#if !defined (SYS_SIGLIST_MISSING)
#define SYS_SIGLIST_MISSING defined (USG)
#endif /* No SYS_SIGLIST_MISSING */
#endif /* param.h not already included. */

View File

@ -25,7 +25,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define CONST
#endif
#ifdef SYS_SIGLIST_MISSING
#if SYS_SIGLIST_MISSING
/* There is too much variation in Sys V signal numbers and names, so
we must initialize them at runtime. */
@ -52,7 +52,7 @@ init_sig (number, abbrev, name)
CONST char *abbrev;
CONST char *name;
{
#ifdef SYS_SIGLIST_MISSING
#if SYS_SIGLIST_MISSING
sys_siglist[number] = name;
#endif
sig_table[sig_table_nelts].number = number;
@ -61,7 +61,7 @@ init_sig (number, abbrev, name)
static void init_sigs ()
{
#ifdef SYS_SIGLIST_MISSING
#if SYS_SIGLIST_MISSING
int i;
/* Initialize signal names. */
@ -226,7 +226,7 @@ sig_number (abbrev)
return -1;
}
#if defined (SYS_SIGLIST_MISSING)
#if SYS_SIGLIST_MISSING
/* Print to standard error the name of SIGNAL, preceded by MESSAGE and
a colon, and followed by a newline. */
void
@ -239,7 +239,7 @@ psignal (signal, message)
else
fprintf (stderr, "%s: %s\n", message, sys_siglist[signal]);
}
#endif
#endif /* SYS_SIGLIST_MISSING */
void
_initialize_signame ()