--- ./src/include/utils/palloc.h.orig 2004-08-29 05:13:11.000000000 +0100 +++ ./src/include/utils/palloc.h 2004-09-10 13:33:04.587653100 +0100 @@ -80,7 +80,7 @@ #define pstrdup(str) MemoryContextStrdup(CurrentMemoryContext, (str)) -#ifdef WIN32 +#if defined(WIN32) || defined(__CYGWIN__) extern void *pgport_palloc(Size sz); extern char *pgport_pstrdup(const char *str); extern void pgport_pfree(void *pointer); --- ./src/port/dirmod.c.orig 2004-09-10 10:29:36.500414700 +0100 +++ ./src/port/dirmod.c 2004-09-10 13:33:53.790148300 +0100 @@ -21,6 +21,9 @@ #include "postgres_fe.h" #endif +#undef rename +#undef unlink + #include #include #include @@ -33,9 +36,6 @@ #include "miscadmin.h" -#undef rename -#undef unlink - #ifndef __CYGWIN__ #include #else