From 2a353d3a5e138357bbe3728e44deb66f853a7caf Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 13 Apr 1993 17:17:19 -0400 Subject: [PATCH] (putenv): Make result type void. (main): Don't call signal for undefined signal names. From-SVN: r4139 --- gcc/gcc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/gcc.c b/gcc/gcc.c index 75e340321c0..37957a6614e 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -1371,6 +1371,7 @@ choose_temp_base () #ifndef HAVE_PUTENV +void putenv (str) char *str; { @@ -2970,8 +2971,6 @@ do_spec_1 (spec, inswitch, soft_matched_part) } break; - /* Here are digits and numbers that just process - a certain constant string as a spec. /* Here are digits and numbers that just process a certain constant string as a spec. */ @@ -3578,8 +3577,10 @@ main (argc, argv) if (signal (SIGINT, SIG_IGN) != SIG_IGN) signal (SIGINT, fatal_error); +#ifdef SIGHUP if (signal (SIGHUP, SIG_IGN) != SIG_IGN) signal (SIGHUP, fatal_error); +#endif if (signal (SIGTERM, SIG_IGN) != SIG_IGN) signal (SIGTERM, fatal_error); #ifdef SIGPIPE