Your patch has been added to the PostgreSQL unapplied patches list at:
http://candle.pha.pa.us/cgi-bin/pgpatches
I will try to apply it within the next 48 hours.
> The attached patch enables the contrib subtree to build cleanly under
> Cygwin with the possible exception of mSQL-interface. Since I don't
> have mSQL installed, I skipped this tool.
>
> Except for dealing with a missing getopt.h (oid2name) and HUGE (seg),
> the bulk of the patch uses the standard PostgreSQL approach to deal with
> Windows DLL issues.
>
> I tested the build aspect of this patch under Cygwin and Linux without
> any ill affects. Note that I did not actually attempt to test the code
> for functionality.
>
> The procedure to apply the patch is as follows:
>
> $ # save the attachment as /tmp/contrib.patch
> $ # change directory to the top of the PostgreSQL source tree
> $ patch -p0 </tmp/contrib.patch
>
> Jason
>
> --
> Jason Tishler
> Director, Software Engineering Phone: 732.264.8770 x235
> Dot Hill Systems Corp. Fax: 732.264.8798
> 82 Bethany Road, Suite 7 Email: Jason.Tishler@dothill.com
> Hazlet, NJ 07730 USA WWW: http://www.dothill.com
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026