From c0c4883be3bad2d3d760e5cc1d34a2a11a4c8529 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 11 Oct 2004 22:50:48 +0000 Subject: Use native Cygwin symlinks so tablespaces work on Win95/98/ME which don't support junction points. Doesn't affect native Win32. --- src/port/dirmod.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/port/dirmod.c') 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 */ -- cgit v1.2.3