Skip to content

Commit 2fa36d7

Browse files
author
Neil Conway
committed
Win32 build cleanups, from Andrew Dunstan.
1 parent ffe130f commit 2fa36d7

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

src/backend/port/dynloader/win32.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
/* $PostgreSQL: pgsql/src/backend/port/dynloader/win32.c,v 1.3 2003/11/29 19:51:54 pgsql Exp $ */
1+
/* $PostgreSQL: pgsql/src/backend/port/dynloader/win32.c,v 1.4 2004/11/17 08:30:08 neilc Exp $ */
22

33
#include <windows.h>
44

5+
char *dlerror(void);
6+
int dlclose(void *handle);
7+
void *dlsym(void *handle, const char *symbol);
8+
void *dlopen(const char *path, int mode);
9+
510
char *
611
dlerror(void)
712
{

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.439 2004/11/17 00:14:12 tgl Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.440 2004/11/17 08:30:09 neilc Exp $
4141
*
4242
* NOTES
4343
*
@@ -4037,7 +4037,7 @@ win32_waitpid(int *exitstatus)
40374037
*/
40384038
ereport(FATAL,
40394039
(errmsg_internal("failed to get exit code for child %lu",
4040-
(DWORD)win32_childPIDArray[index])));
4040+
(unsigned long) win32_childPIDArray[index])));
40414041
}
40424042
*exitstatus = (int) exitCode;
40434043
return win32_childPIDArray[index];

src/port/open.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
88
*
9-
* $PostgreSQL: pgsql/src/port/open.c,v 1.5 2004/10/17 23:53:30 momjian Exp $
9+
* $PostgreSQL: pgsql/src/port/open.c,v 1.6 2004/11/17 08:30:11 neilc Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -18,6 +18,8 @@
1818
#include <errno.h>
1919
#include <assert.h>
2020

21+
int win32_open(const char *fileName, int fileFlags, ...);
22+
2123
static int
2224
openFlagsToCreateFileFlags(int openFlags)
2325
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy