fix NO_SIGNAL

This commit is contained in:
Adam Powers
2020-10-19 13:21:07 -07:00
parent 5e5324c25b
commit 03e9eb6dd6
3 changed files with 6 additions and 5 deletions

View File

@@ -555,11 +555,11 @@ whoami()
return FALSE;
}
#ifndef NO_SIGNAL
void
sethanguphandler(handler)
void FDECL((*handler), (int));
{
#ifndef NO_SIGNAL
#ifdef SA_RESTART
/* don't want reads to restart. If SA_RESTART is defined, we know
* sigaction exists and can be used to ensure reads won't restart.
@@ -581,8 +581,8 @@ void FDECL((*handler), (int));
(void) signal(SIGXCPU, (SIG_RET_TYPE) handler);
#endif
#endif /* ?SA_RESTART */
#endif /* !NO_SIGNAL */
}
#endif /* !NO_SIGNAL */
#ifdef PORT_HELP
void
@@ -1003,7 +1003,8 @@ void js_constants_init() {
// copyright
SET_CONSTANT_STRING("COPYRIGHT", COPYRIGHT_BANNER_A);
SET_CONSTANT_STRING("COPYRIGHT", COPYRIGHT_BANNER_B);
SET_CONSTANT_STRING("COPYRIGHT", COPYRIGHT_BANNER_C);
// XXX: not set for cross-compile
//SET_CONSTANT_STRING("COPYRIGHT", COPYRIGHT_BANNER_C);
SET_CONSTANT_STRING("COPYRIGHT", COPYRIGHT_BANNER_D);
// glyphs