Commit 0af900b7 by Jim Wilson

(sys_siglist): Don't declare if NO_SYS_SIGLIST or DONT_DECLARE_SYS_SIGLIST are defined.

(sys_siglist): Don't declare if NO_SYS_SIGLIST or
DONT_DECLARE_SYS_SIGLIST are defined.
(catch_signal): Add code for NO_SYS_SIGLIST case.

From-SVN: r6493
parent 438be795
...@@ -1748,7 +1748,11 @@ extern char *optarg; ...@@ -1748,7 +1748,11 @@ extern char *optarg;
extern int optind; extern int optind;
extern int opterr; extern int opterr;
extern char *version_string; extern char *version_string;
#ifndef NO_SYS_SIGLIST
#ifndef DONT_DECLARE_SYS_SIGLIST
extern char *sys_siglist[NSIG + 1]; extern char *sys_siglist[NSIG + 1];
#endif
#endif
#ifndef SEEK_SET /* Symbolic constants for the "fseek" function: */ #ifndef SEEK_SET /* Symbolic constants for the "fseek" function: */
#define SEEK_SET 0 /* Set file pointer to offset */ #define SEEK_SET 0 /* Set file pointer to offset */
...@@ -5000,7 +5004,11 @@ catch_signal (signum) ...@@ -5000,7 +5004,11 @@ catch_signal (signum)
int signum; int signum;
{ {
(void) signal (signum, SIG_DFL); /* just in case... */ (void) signal (signum, SIG_DFL); /* just in case... */
#ifdef NO_SYS_SIGLIST
fatal ("caught signal");
#else
fatal (sys_siglist[signum]); fatal (sys_siglist[signum]);
#endif
} }
/* Print a fatal error message. NAME is the text. /* Print a fatal error message. NAME is the text.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment