#endif
#ifndef NO_SIGNAL
(void) signal(SIGINT, SIG_IGN);
-#endif
#if defined(UNIX) || defined(VMS)
sethanguphandler((void FDECL((*), (int) )) SIG_IGN);
#endif
+#endif /* NO_SIGNAL */
/* can't access maxledgerno() before dungeons are created -dlc */
for (x = (g.n_dgns ? maxledgerno() : 0); x >= 0; x--)
delete_levelfile(x); /* not all levels need be present */
return 0;
fq_save = fqname(g.SAVEF, SAVEPREFIX, 1); /* level files take 0 */
+#ifndef NO_SIGNAL
#if defined(UNIX) || defined(VMS)
sethanguphandler((void FDECL((*), (int) )) SIG_IGN);
#endif
-#ifndef NO_SIGNAL
(void) signal(SIGINT, SIG_IGN);
#endif
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.
(void) signal(SIGXCPU, (SIG_RET_TYPE) handler);
#endif
#endif /* ?SA_RESTART */
-#endif /* !NO_SIGNAL */
}
+#endif /* !NO_SIGNAL */
#ifdef PORT_HELP
void
// 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