Win32 build cleanups, from Andrew Dunstan.
This commit is contained in:
parent
ffe130f52e
commit
2fa36d7e41
@ -1,7 +1,12 @@
|
||||
/* $PostgreSQL: pgsql/src/backend/port/dynloader/win32.c,v 1.3 2003/11/29 19:51:54 pgsql Exp $ */
|
||||
/* $PostgreSQL: pgsql/src/backend/port/dynloader/win32.c,v 1.4 2004/11/17 08:30:08 neilc Exp $ */
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
char *dlerror(void);
|
||||
int dlclose(void *handle);
|
||||
void *dlsym(void *handle, const char *symbol);
|
||||
void *dlopen(const char *path, int mode);
|
||||
|
||||
char *
|
||||
dlerror(void)
|
||||
{
|
||||
|
@ -37,7 +37,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.439 2004/11/17 00:14:12 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.440 2004/11/17 08:30:09 neilc Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@ -4037,7 +4037,7 @@ win32_waitpid(int *exitstatus)
|
||||
*/
|
||||
ereport(FATAL,
|
||||
(errmsg_internal("failed to get exit code for child %lu",
|
||||
(DWORD)win32_childPIDArray[index])));
|
||||
(unsigned long) win32_childPIDArray[index])));
|
||||
}
|
||||
*exitstatus = (int) exitCode;
|
||||
return win32_childPIDArray[index];
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/port/open.c,v 1.5 2004/10/17 23:53:30 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/port/open.c,v 1.6 2004/11/17 08:30:11 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -18,6 +18,8 @@
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
|
||||
int win32_open(const char *fileName, int fileFlags, ...);
|
||||
|
||||
static int
|
||||
openFlagsToCreateFileFlags(int openFlags)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user