diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-04-15 18:05:52 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-04-15 18:05:52 +0300 |
commit | 70ec3928666353b69efae1bdc831d704fa505e72 (patch) | |
tree | b84519a00dbfbe4943fd19d0f6d5aff58d0ddd19 /src/msdos.h | |
parent | 7a608fc6f3ded3e615e7accb29f16bfd290d80a1 (diff) | |
download | emacs-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.h | 1 |
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) |