From 7a6b562fdf60f1d1ebe9e2bc154d0ffd56dab2d1 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 17 Jan 1999 06:20:06 +0000 Subject: Apply Win32 patch from Horak Daniel. --- src/interfaces/odbc/misc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/interfaces/odbc/misc.c') diff --git a/src/interfaces/odbc/misc.c b/src/interfaces/odbc/misc.c index 60baaa63f2d..cc31c3bdf83 100644 --- a/src/interfaces/odbc/misc.c +++ b/src/interfaces/odbc/misc.c @@ -71,7 +71,11 @@ char filebuf[80]; if (! LOGFP) { generate_filename(MYLOGDIR,MYLOGFILE,filebuf); +#ifndef __CYGWIN32__ LOGFP = fopen(filebuf, "w"); +#else + LOGFP = fopen(filebuf, "wb"); +#endif globals.mylogFP = LOGFP; setbuf(LOGFP, NULL); } @@ -102,7 +106,11 @@ FILE* LOGFP = globals.qlogFP; if (! LOGFP) { generate_filename(QLOGDIR,QLOGFILE,filebuf); +#ifndef __CYGWIN32__ LOGFP = fopen(filebuf, "w"); +#else + LOGFP = fopen(filebuf, "wb"); +#endif globals.qlogFP = LOGFP; setbuf(LOGFP, NULL); } -- cgit v1.2.3