--- sig.h.orig 2013-02-27 16:17:20.000000000 +0100 +++ sig.h 2015-06-24 22:41:55.961577207 +0200 @@ -25,7 +25,7 @@ #include "stdc.h" -#if !defined (SIG_DFL) +#if !defined (SIG_DFL) || defined __sgi # include /* for sig_atomic_t */ #endif --- externs.h.orig 2014-10-01 18:57:22.000000000 +0200 +++ externs.h 2015-06-26 20:19:56.702752134 +0200 @@ -324,7 +324,7 @@ extern char *sh_backslash_quote __P((char *, const char *, int)); extern char *sh_backslash_quote_for_double_quotes __P((char *)); extern int sh_contains_shell_metas __P((char *)); -extern int sh_contains_quotes __P((char *)); +extern int sh_contains_quotes __P((const char *)); /* declarations for functions defined in lib/sh/spell.c */ extern int spname __P((char *, char *)); --- builtins/evalstring.c.orig 2014-10-05 19:52:50.000000000 +0200 +++ builtins/evalstring.c 2015-06-26 20:52:47.734424454 +0200 @@ -195,7 +195,11 @@ int code, lreset; volatile int should_jump_to_top_level, last_result; COMMAND *volatile command; +#ifdef __sgi + sigset_t pe_sigmask; +#else volatile sigset_t pe_sigmask; +#endif parse_prologue (string, flags, PE_TAG); @@ -451,7 +455,11 @@ volatile int should_jump_to_top_level; COMMAND *volatile command, *oglobal; char *ostring; +#ifdef __sgi + sigset_t ps_sigmask; +#else volatile sigset_t ps_sigmask; +#endif parse_prologue (string, flags, PS_TAG);