simple c99 compiler
git clone git://
Log | Files | Refs | README | LICENSE

commit ba546feb8726d388821569a72da2213d17b2430d
parent 8d8bd9d02cb208dd6e2511b6804101f9c9d1a38c
Author: Naveen Narayanan <>
Date:   Mon, 31 Aug 2020 21:24:49 +0200

cmd: Check before throwing SIGQUIT in ar.c

Check if SIGQUIT is exposed before throwing it as the c99/89 interface
does not expose it. scc limits the posix namespace in order to make
use of certain function names (such as getline) using feature test

Msrc/cmd/ar.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/cmd/ar.c b/src/cmd/ar.c @@ -640,7 +640,9 @@ main(int argc, char *argv[]) usage(); signal(SIGINT, sigfun); +#ifdef SIGQUIT signal(SIGQUIT, sigfun); +#endif signal(SIGTERM, sigfun); arfile = *argv;