summaryrefslogtreecommitdiff
path: root/src/port/dirmod.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-10-11 22:50:48 +0000
committerBruce Momjian <bruce@momjian.us>2004-10-11 22:50:48 +0000
commitc0c4883be3bad2d3d760e5cc1d34a2a11a4c8529 (patch)
tree877cf596c51a3b004dc95a78813db0bc10ef7711 /src/port/dirmod.c
parent669ca7af831fb1bba21fdcb037b8e8a365534230 (diff)
Use native Cygwin symlinks so tablespaces work on Win95/98/ME which
don't support junction points. Doesn't affect native Win32.
Diffstat (limited to 'src/port/dirmod.c')
-rw-r--r--src/port/dirmod.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/port/dirmod.c b/src/port/dirmod.c
index 1141138984d..ca90f0263d1 100644
--- a/src/port/dirmod.c
+++ b/src/port/dirmod.c
@@ -10,7 +10,7 @@
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.27 2004/09/27 19:16:02 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.28 2004/10/11 22:50:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -142,6 +142,7 @@ pgunlink(const char *path)
}
+#ifdef WIN32 /* Cygwin has its own symlinks */
/*
* pgsymlink support:
*
@@ -160,9 +161,7 @@ typedef struct
WORD PrintNameOffset;
WORD PrintNameLength;
WCHAR PathBuffer[1];
-}
-
- REPARSE_JUNCTION_DATA_BUFFER;
+} REPARSE_JUNCTION_DATA_BUFFER;
#define REPARSE_JUNCTION_DATA_BUFFER_HEADER_SIZE \
FIELD_OFFSET(REPARSE_JUNCTION_DATA_BUFFER, SubstituteNameOffset)
@@ -246,6 +245,7 @@ pgsymlink(const char *oldpath, const char *newpath)
return 0;
}
#endif
+#endif
/* We undefined this above, so we redefine it */