66 * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
77 * Portions Copyright (c) 1994, Regents of the University of California
88 *
9- * $PostgreSQL: pgsql/src/include/port.h,v 1.111 2007/04/13 10:30:30 mha Exp $
9+ * $PostgreSQL: pgsql/src/include/port.h,v 1.112 2007/07/12 23:28:49 tgl Exp $
1010 *
1111 *-------------------------------------------------------------------------
1212 */
@@ -241,8 +241,7 @@ extern intpclose_check(FILE *stream);
241241
242242#if defined(WIN32 )|| defined(__CYGWIN__ )
243243/*
244- *Win32 doesn't have reliable rename/unlink during concurrent access,
245- *and we need special code to do symlinks.
244+ *Win32 doesn't have reliable rename/unlink during concurrent access.
246245 */
247246extern int pgrename (const char * from ,const char * to );
248247extern int pgunlink (const char * path );
@@ -255,9 +254,14 @@ extern intpgunlink(const char *path);
255254#define rename (from ,to )pgrename(from, to)
256255#define unlink (path )pgunlink(path)
257256
257+ #endif /* defined(WIN32) || defined(__CYGWIN__) */
258+
258259/*
260+ *Win32 also doesn't have symlinks, but we can emulate them with
261+ *junction points on newer Win32 versions.
262+ *
259263 *Cygwin has its own symlinks which work on Win95/98/ME where
260- *junction points don't, so useit instead. We have no way of
264+ *junction points don't, so usethose instead. We have no way of
261265 *knowing what type of system Cygwin binaries will be run on.
262266 *Note: Some CYGWIN includes might #define WIN32.
263267 */
@@ -266,7 +270,6 @@ extern intpgsymlink(const char *oldpath, const char *newpath);
266270
267271#define symlink (oldpath ,newpath )pgsymlink(oldpath, newpath)
268272#endif
269- #endif /* defined(WIN32) || defined(__CYGWIN__) */
270273
271274extern void copydir (char * fromdir ,char * todir ,bool recurse );
272275