From: Richard Kenner Date: Tue, 13 Apr 1993 21:17:19 +0000 (-0400) Subject: (putenv): Make result type void. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a353d3a5e138357bbe3728e44deb66f853a7caf;p=gcc.git (putenv): Make result type void. (main): Don't call signal for undefined signal names. From-SVN: r4139 --- 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