diff options
Diffstat (limited to 'src/interfaces/odbc/misc.c')
-rw-r--r-- | src/interfaces/odbc/misc.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); } |