summaryrefslogtreecommitdiff
path: root/src/msdos.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-04-15 18:05:52 +0300
committerEli Zaretskii <eliz@gnu.org>2019-04-15 18:05:52 +0300
commit70ec3928666353b69efae1bdc831d704fa505e72 (patch)
treeb84519a00dbfbe4943fd19d0f6d5aff58d0ddd19 /src/msdos.h
parent7a608fc6f3ded3e615e7accb29f16bfd290d80a1 (diff)
downloademacs-70ec3928666353b69efae1bdc831d704fa505e72.tar.gz
Fix the MSDOS build when running under CWSDPMI
* src/msdos.c (the_only_tty_output): Define. * src/msdos.h (the_only_tty_output): Declare. * src/frame.c (make_terminal_frame) [MSDOS]: * src/dispnew.c (init_display) [MSDOS]: Set up f->output_data.tty pointer using the_only_tty_output, before dereferencing the pointer. This prevents crashes with DPMI servers that provide NULL pointer protection.
Diffstat (limited to 'src/msdos.h')
-rw-r--r--src/msdos.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/msdos.h b/src/msdos.h
index ff756f8f634..0d15df7a331 100644
--- a/src/msdos.h
+++ b/src/msdos.h
@@ -93,6 +93,7 @@ typedef int XRectangle;
typedef struct tty_display_info Display_Info;
extern struct tty_display_info the_only_display_info;
+extern struct tty_output the_only_tty_output;
#define FRAME_X_DISPLAY(f) ((Display *) 0)
#define FRAME_FONT(f) ((f)->output_data.tty->font)