]> granicus.if.org Git - nethack/commitdiff
fix an issue when HANGUPHANDLING isn't defined
authornhmall <nhmall@nethack.org>
Wed, 1 Mar 2023 15:54:04 +0000 (10:54 -0500)
committernhmall <nhmall@nethack.org>
Wed, 1 Mar 2023 15:54:04 +0000 (10:54 -0500)
This is a contrived issue since HANGUPHANDLING is probably
defined for UNIX

src/end.c

index 529b4e18d17fb78e94ee8b3e59a28e79000e58be..a83f082f5b661706b682f956b4e3616849d3918d 100644 (file)
--- a/src/end.c
+++ b/src/end.c
@@ -391,7 +391,9 @@ done_intr(int sig_unused UNUSED)
 static void
 done_hangup(int sig)
 {
+#ifdef HANGUPHANDLING
     gp.program_state.done_hup++;
+#endif
     sethanguphandler((void (*)(int)) SIG_IGN);
     done_intr(sig);
     return;