]> granicus.if.org Git - nethack/commitdiff
Fix HANGUPHANDLING ifdef for TTY
authorMichael Meyer <me@entrez.cc>
Tue, 4 Oct 2022 17:20:12 +0000 (13:20 -0400)
committerPatR <rankin@nethack.org>
Tue, 4 Oct 2022 22:06:32 +0000 (15:06 -0700)
The SIGHUP handling for the TTY windowport added in 594cb5f was wrapped
in '#ifdef HANGUP_HANDLING', but the actual define is 'HANGUPHANDLING'
without the underscore.

win/tty/wintty.c

index 4b0f36afc8061822b8ab01633d9785b9ffefa07d..18933fea1d6a7ab662844cf58678f8d10f8008b6 100644 (file)
@@ -69,7 +69,7 @@ extern void msmsg(const char *, ...);
 #define AVTC_SOUND_PLAY    4
 #endif
 
-#ifdef HANGUP_HANDLING
+#ifdef HANGUPHANDLING
 /*
  * NetHack's core switches to a dummy windowing interface when it
  * detects SIGHUP, but that's no help for any interface routine which
@@ -91,10 +91,10 @@ extern void msmsg(const char *, ...);
         if (g.program_state.done_hup)           \
             return (RES);                       \
     } while (0)
-#else /* !HANGUP_HANDLING */
+#else /* !HANGUPHANDLING */
 #define HUPSKIP() /*empty*/
 #define HUPSKIP_RESULT(RES) /*empty*/
-#endif /* ?HANGUP_HANDLING */
+#endif /* ?HANGUPHANDLING */
 
 /* Interface definition, for windows.c */
 struct window_procs tty_procs = {