aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/port.h4
-rw-r--r--src/port/dirmod.c9
2 files changed, 10 insertions, 3 deletions
diff --git a/src/include/port.h b/src/include/port.h
index 67e16e1aae4..a885e91424d 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/port.h,v 1.17 2004/02/02 00:17:23 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/port.h,v 1.18 2004/02/02 22:20:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -30,7 +30,7 @@ extern int fseeko(FILE *stream, off_t offset, int whence);
extern off_t ftello(FILE *stream);
#endif
-#if !defined(FRONTEND) && (defined(WIN32) || defined(CYGWIN))
+#if defined(WIN32) || defined(CYGWIN)
/*
* Win32 doesn't have reliable rename/unlink during concurrent access
*/
diff --git a/src/port/dirmod.c b/src/port/dirmod.c
index 45a99216c35..c0c73832991 100644
--- a/src/port/dirmod.c
+++ b/src/port/dirmod.c
@@ -10,14 +10,20 @@
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.9 2004/02/02 00:17:23 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.10 2004/02/02 22:20:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef TEST_VERSION
+#if defined(WIN32) || defined(CYGWIN)
+
+#ifndef FRONTEND
#include "postgres.h"
+#else
+#include "postgres_fe.h"
+#endif
#undef rename
#undef unlink
@@ -95,6 +101,7 @@ pgunlink(const char *path)
return 0;
}
+#endif
#else