From 89f2acd5b08a1203efe27ee93a80638e5764e548 Mon Sep 17 00:00:00 2001 From: Stephane Carrez Date: Fri, 25 Oct 2002 19:24:29 +0000 Subject: [PATCH] Fix PR gdb/478 * tuiIO.c (tui_initialize_io): Use setvbuf since this is portable. --- gdb/tui/ChangeLog | 5 +++++ gdb/tui/tuiIO.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog index edff2bd9c07..79f1bba2c3e 100644 --- a/gdb/tui/ChangeLog +++ b/gdb/tui/ChangeLog @@ -1,3 +1,8 @@ +2002-10-25 Stephane Carrez + + Fix PR gdb/478 + * tuiIO.c (tui_initialize_io): Use setvbuf since this is portable. + 2002-09-13 Stephane Carrez * tui.c (tui_rl_switch_mode): Remove unecessary TUI switch printfs. diff --git a/gdb/tui/tuiIO.c b/gdb/tui/tuiIO.c index f70df8f4748..3968a0a270e 100644 --- a/gdb/tui/tuiIO.c +++ b/gdb/tui/tuiIO.c @@ -600,7 +600,7 @@ tui_initialize_io () fprintf_unfiltered (gdb_stderr, "Cannot redirect readline output"); exit (1); } - setlinebuf (tui_rl_outstream); + setvbuf (tui_rl_outstream, (char*) NULL, _IOLBF, 0); #ifdef O_NONBLOCK (void) fcntl (tui_readline_pipe[0], F_SETFL, O_NONBLOCK); -- 2.47.2