summaryrefslogtreecommitdiff
path: root/src/port/open.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-06-25 00:18:24 +0000
committerBruce Momjian <bruce@momjian.us>2006-06-25 00:18:24 +0000
commitd8f75d4131589f45e77189e93190a5d5f04814a7 (patch)
treedeb65c5014aefd1f040a800c56decf327bf36b4e /src/port/open.c
parentac7a126d0c261d4013f1c8ff55d0895353587dea (diff)
Fix Win32/Cygwin problems:
After updating to the latest cvs, and also building most of the addons (like PLs), the following patch is neededf for win32 + Visual C++. * Switch to use the new win32 semaphore code * Rename win32_open to pgwin32_open. win32_open collides with symbols defined in Perl. MingW didn't detect ig, MSVC did. And it's a bit too generic a name to export globally, imho... * Python defines some partially broken #pragmas in the headers when doing a debug build. Workaround. Magnus Hagander
Diffstat (limited to 'src/port/open.c')
-rw-r--r--src/port/open.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/port/open.c b/src/port/open.c
index f0de771e8bb..4df74d8b51b 100644
--- a/src/port/open.c
+++ b/src/port/open.c
@@ -6,7 +6,7 @@
*
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/port/open.c,v 1.12 2006/03/05 15:59:10 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/open.c,v 1.13 2006/06/25 00:18:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -19,7 +19,7 @@
#include <fcntl.h>
#include <assert.h>
-int win32_open(const char *fileName, int fileFlags,...);
+int pgwin32_open(const char *fileName, int fileFlags,...);
static int
openFlagsToCreateFileFlags(int openFlags)
@@ -54,7 +54,7 @@ openFlagsToCreateFileFlags(int openFlags)
* - handle other flags? (eg FILE_FLAG_NO_BUFFERING/FILE_FLAG_WRITE_THROUGH)
*/
int
-win32_open(const char *fileName, int fileFlags,...)
+pgwin32_open(const char *fileName, int fileFlags,...)
{
int fd;
HANDLE h;