mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
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
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: miscadmin.h,v 1.86 2001/06/13 21:44:41 tgl Exp $
|
||||
* $Id: miscadmin.h,v 1.87 2001/06/18 21:38:02 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* some of the information in this file should be moved to
|
||||
@ -115,7 +115,7 @@ extern int PostmasterMain(int argc, char *argv[]);
|
||||
extern bool Noversion;
|
||||
extern char *DataDir;
|
||||
|
||||
extern int MyProcPid;
|
||||
extern DLLIMPORT int MyProcPid;
|
||||
extern struct Port *MyProcPort;
|
||||
extern long MyCancelKey;
|
||||
|
||||
@ -126,7 +126,7 @@ extern char OutputFileName[];
|
||||
*
|
||||
* extern BackendId MyBackendId;
|
||||
*/
|
||||
extern Oid MyDatabaseId;
|
||||
extern DLLIMPORT Oid MyDatabaseId;
|
||||
|
||||
extern bool IsUnderPostmaster;
|
||||
|
||||
|
Reference in New Issue
Block a user