mirror of
https://github.com/postgres/postgres.git
synced 2025-11-26 23:43:30 +03:00
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
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/syslogger.c,v 1.23 2006/03/05 15:58:36 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/syslogger.c,v 1.24 2006/06/07 22:24:44 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -153,7 +153,7 @@ SysLoggerMain(int argc, char *argv[])
|
||||
*/
|
||||
if (redirection_done)
|
||||
{
|
||||
int fd = open(NULL_DEV, O_WRONLY);
|
||||
int fd = open(NULL_DEV, O_WRONLY, 0);
|
||||
|
||||
/*
|
||||
* The closes might look redundant, but they are not: we want to be
|
||||
|
||||
Reference in New Issue
Block a user