diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-09-10 09:53:08 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-09-10 09:53:08 +0000 |
commit | e2e1a0cc710dd89ba23fd989243864d62cf08d72 (patch) | |
tree | 7f3e4b317f8f30e724119d619114d0faa6a1e8ed | |
parent | 3036b84b77581b89f77413c8681631c0a52a7207 (diff) | |
download | postgresql-e2e1a0cc710dd89ba23fd989243864d62cf08d72.tar.gz postgresql-e2e1a0cc710dd89ba23fd989243864d62cf08d72.zip |
Move undef of rename/unlink so system declarations are unmodified.
-rw-r--r-- | src/port/dirmod.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/port/dirmod.c b/src/port/dirmod.c index 89d2d39a26b..f2913b9f915 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.24 2004/09/10 02:49:37 momjian Exp $ + * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.25 2004/09/10 09:53:08 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -21,6 +21,12 @@ #include "postgres_fe.h" #endif +/* Don't modify declarations in system headers */ +#if defined(WIN32) || defined(__CYGWIN__) +#undef rename +#undef unlink +#endif + #include <unistd.h> #include <dirent.h> #include <sys/stat.h> @@ -33,9 +39,6 @@ #include "miscadmin.h" -#undef rename -#undef unlink - #ifndef __CYGWIN__ #include <winioctl.h> #else |