Fix HANGUPHANDLING ifdef for TTY
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.
This commit is contained in:
+3
-3
@@ -69,7 +69,7 @@ extern void msmsg(const char *, ...);
|
|||||||
#define AVTC_SOUND_PLAY 4
|
#define AVTC_SOUND_PLAY 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HANGUP_HANDLING
|
#ifdef HANGUPHANDLING
|
||||||
/*
|
/*
|
||||||
* NetHack's core switches to a dummy windowing interface when it
|
* NetHack's core switches to a dummy windowing interface when it
|
||||||
* detects SIGHUP, but that's no help for any interface routine which
|
* 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) \
|
if (g.program_state.done_hup) \
|
||||||
return (RES); \
|
return (RES); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#else /* !HANGUP_HANDLING */
|
#else /* !HANGUPHANDLING */
|
||||||
#define HUPSKIP() /*empty*/
|
#define HUPSKIP() /*empty*/
|
||||||
#define HUPSKIP_RESULT(RES) /*empty*/
|
#define HUPSKIP_RESULT(RES) /*empty*/
|
||||||
#endif /* ?HANGUP_HANDLING */
|
#endif /* ?HANGUPHANDLING */
|
||||||
|
|
||||||
/* Interface definition, for windows.c */
|
/* Interface definition, for windows.c */
|
||||||
struct window_procs tty_procs = {
|
struct window_procs tty_procs = {
|
||||||
|
|||||||
Reference in New Issue
Block a user