mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Fix one more cast for _open_osfhandle().
Tsutomu Yamada
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/syslogger.c,v 1.53 2009/11/19 02:45:33 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/syslogger.c,v 1.54 2010/01/02 12:01:29 mha Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -573,7 +573,7 @@ SysLogger_Start(void)
|
||||
* chunking protocol.
|
||||
*/
|
||||
fflush(stderr);
|
||||
fd = _open_osfhandle((long) syslogPipe[1],
|
||||
fd = _open_osfhandle((intptr_t) syslogPipe[1],
|
||||
_O_APPEND | _O_BINARY);
|
||||
if (dup2(fd, _fileno(stderr)) < 0)
|
||||
ereport(FATAL,
|
||||
|
Reference in New Issue
Block a user