summaryrefslogtreecommitdiff
path: root/src/timezone
diff options
context:
space:
mode:
authorBruce Momjian2006-06-07 22:24:46 +0000
committerBruce Momjian2006-06-07 22:24:46 +0000
commit399a36a75d2d06bfdb91402713d408271b4833ba (patch)
treeb8391f6bda4680d37ac430c3270c67bde979d842 /src/timezone
parent877e296306a2017a18fc7086e9742c8ee3e0a665 (diff)
Prepare code to be built by MSVC:
o remove many WIN32_CLIENT_ONLY defines o add WIN32_ONLY_COMPILER define o add 3rd argument to open() for portability o add include/port/win32_msvc directory for system includes Magnus Hagander
Diffstat (limited to 'src/timezone')
-rw-r--r--src/timezone/localtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timezone/localtime.c b/src/timezone/localtime.c
index fd609aba17f..35fa21ef874 100644
--- a/src/timezone/localtime.c
+++ b/src/timezone/localtime.c
@@ -3,7 +3,7 @@
* 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/timezone/localtime.c,v 1.13 2006/04/09 19:21:34 tgl Exp $
+ * $PostgreSQL: pgsql/src/timezone/localtime.c,v 1.14 2006/06/07 22:24:46 momjian Exp $
*/
/*
@@ -157,7 +157,7 @@ tzload(const char *name, struct state * sp)
}
if (doaccess && access(name, R_OK) != 0)
return -1;
- if ((fid = open(name, O_RDONLY | PG_BINARY)) == -1)
+ if ((fid = open(name, O_RDONLY | PG_BINARY, 0)) == -1)
return -1;
}
{