diff options
| author | Bruce Momjian | 2004-09-09 00:59:49 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2004-09-09 00:59:49 +0000 |
| commit | f1d11161780670174e1363e3962ed006a89f19fc (patch) | |
| tree | 3c5fe0926049b428891f347084b734029b97c2e9 /src/port/dirmod.c | |
| parent | b70999d0fd9a43288842f27b10cf317144ac9ff1 (diff) | |
Fix Cygwin defines to be consistent.
Diffstat (limited to 'src/port/dirmod.c')
| -rw-r--r-- | src/port/dirmod.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/port/dirmod.c b/src/port/dirmod.c index e7d0ef23c3f..cda2bb1a08d 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.22 2004/08/29 05:07:02 momjian Exp $ + * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.23 2004/09/09 00:59:49 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -66,14 +66,14 @@ pgrename(const char *from, const char *to) { int loops = 0; -#ifdef WIN32 +#if defined(WIN32) && !defined(__CYGWIN__) while (!MoveFileEx(from, to, MOVEFILE_REPLACE_EXISTING)) #endif #ifdef __CYGWIN__ while (rename(from, to) < 0) #endif { -#ifdef WIN32 +#if defined(WIN32) && !defined(__CYGWIN__) if (GetLastError() != ERROR_ACCESS_DENIED) #endif #ifdef __CYGWIN__ |
