From 0fda6bd286fe931a998c4d5322ad12a4ed610f87 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 25 Jan 2000 02:40:50 +0000 Subject: import gdb-2000-01-24 snapshot --- gdb/rdi-share/devsw.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'gdb/rdi-share') diff --git a/gdb/rdi-share/devsw.c b/gdb/rdi-share/devsw.c index ea666a1..58c0bfe 100644 --- a/gdb/rdi-share/devsw.c +++ b/gdb/rdi-share/devsw.c @@ -15,6 +15,7 @@ #include #include #include +#include #include "adp.h" #include "sys.h" @@ -48,9 +49,14 @@ static void openLogFile () perror ("fopen"); } else - /* The following line is equivalent to: */ - /* setlinebuf (angelDebugLogFile); */ - setvbuf(angelDebugLogFile, (char *)NULL, _IOLBF, 0); + { + /* The following line is equivalent to: */ + /* setlinebuf (angelDebugLogFile); */ + setvbuf(angelDebugLogFile, (char *)NULL, _IOLBF, 0); +#if defined(__CYGWIN32__) || defined(__CYGWIN__) + setmode(fileno(angelDebugLogFile), O_TEXT); +#endif + } time (&t); fprintf (angelDebugLogFile,"ADP log file opened at %s\n",asctime(localtime(&t))); -- cgit v1.1