From 399a36a75d2d06bfdb91402713d408271b4833ba Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 7 Jun 2006 22:24:46 +0000 Subject: 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 --- src/timezone/localtime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/timezone') diff --git a/src/timezone/localtime.c b/src/timezone/localtime.c index fd609aba17..35fa21ef87 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; } { -- cgit v1.2.3