mirror of
https://github.com/postgres/postgres.git
synced 2025-11-01 21:31:19 +03:00
Apply Win32 patch from Horak Daniel.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile.in,v 1.9 1998/10/28 06:49:10 thomas Exp $
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile.in,v 1.10 1999/01/17 06:19:43 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
@SET_MAKE@
|
||||
@@ -73,7 +73,11 @@ clean:
|
||||
distclean: clean
|
||||
-rm -f config.h GNUmakefile Makefile.global
|
||||
-rm -f config.cache config.log config.status
|
||||
ifeq ($(PORTNAME), win)
|
||||
@if [ $SRCDIR != $ODBCSRCDIR ]; then rm -f template makefiles port; fi
|
||||
else
|
||||
@if [ $SRCDIR ne $ODBCSRCDIR ]; then rm -f template makefiles port
|
||||
endif
|
||||
|
||||
.PHONY: standalone
|
||||
|
||||
|
||||
@@ -97,10 +97,18 @@ GetPrivateProfileString(char *theSection, // section name
|
||||
/* This code makes it so that a file in the users home dir
|
||||
* overrides a the "default" file as passed in
|
||||
*/
|
||||
#ifndef __CYGWIN32__
|
||||
aFile = (FILE*)(buf ? fopen(buf, "r") : NULL);
|
||||
#else
|
||||
aFile = (FILE*)(buf ? fopen(buf, "rb") : NULL);
|
||||
#endif
|
||||
if(!aFile) {
|
||||
sprintf(buf,"%s",theIniFileName);
|
||||
#ifndef __CYGWIN32__
|
||||
aFile = (FILE*)(buf ? fopen(buf, "r") : NULL);
|
||||
#else
|
||||
aFile = (FILE*)(buf ? fopen(buf, "rb") : NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user