The attached patch enables the contrib subtree to build cleanly under
Bruce Momjian <bruce@momjian.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/array/Makefile | modified | +2 −1 |
| contrib/cube/Makefile | modified | +2 −1 |
| contrib/dblink/Makefile | modified | +1 −0 |
| contrib/earthdistance/Makefile | modified | +2 −1 |
| contrib/fulltextindex/Makefile | modified | +2 −1 |
| contrib/intarray/Makefile | modified | +2 −1 |
| contrib/isbn_issn/Makefile | modified | +2 −1 |
| contrib/lo/Makefile | modified | +2 −1 |
| contrib/miscutil/Makefile | modified | +2 −1 |
| contrib/noupdate/Makefile | modified | +2 −1 |
| contrib/oid2name/oid2name.c | modified | +1 −0 |
| contrib/pgcrypto/Makefile | modified | +2 −1 |
| contrib/rserv/Makefile | modified | +1 −0 |
| contrib/seg/Makefile | modified | +2 −1 |
| contrib/seg/segparse.y | modified | +4 −0 |
| contrib/soundex/Makefile | modified | +2 −1 |
| contrib/string/Makefile | modified | +2 −1 |
| contrib/userlock/Makefile | modified | +2 −1 |
| src/include/miscadmin.h | modified | +3 −3 |
| src/include/storage/shmem.h | modified | +2 −2 |
| src/include/utils/tqual.h | modified | +2 −2 |