diff options
author | Bruce Momjian | 2001-06-18 21:38:02 +0000 |
---|---|---|
committer | Bruce Momjian | 2001-06-18 21:38:02 +0000 |
commit | 558fae16e3d09afeb75a8a048ab750d559ff5848 (patch) | |
tree | f7b871c051f605e6137e240ccdd5eb3eda5d6d01 /src | |
parent | 22dc12b8c3480261d643d0087e98e0cc69feb693 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/include/miscadmin.h | 6 | ||||
-rw-r--r-- | src/include/storage/shmem.h | 4 | ||||
-rw-r--r-- | src/include/utils/tqual.h | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index 588c2f99dea..ce4255cb7d5 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -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; diff --git a/src/include/storage/shmem.h b/src/include/storage/shmem.h index 04c8bbaf418..2768a772d66 100644 --- a/src/include/storage/shmem.h +++ b/src/include/storage/shmem.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: shmem.h,v 1.28 2001/03/22 04:01:09 momjian Exp $ + * $Id: shmem.h,v 1.29 2001/06/18 21:38:02 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -36,7 +36,7 @@ typedef unsigned long SHMEM_OFFSET; * The macros in this header file can only cope with offsets into this * shared memory region! */ -extern SHMEM_OFFSET ShmemBase; +extern DLLIMPORT SHMEM_OFFSET ShmemBase; /* coerce an offset into a pointer in this process's address space */ diff --git a/src/include/utils/tqual.h b/src/include/utils/tqual.h index a2bcddf862f..7c3dece02fe 100644 --- a/src/include/utils/tqual.h +++ b/src/include/utils/tqual.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: tqual.h,v 1.30 2001/01/24 19:43:29 momjian Exp $ + * $Id: tqual.h,v 1.31 2001/06/18 21:38:02 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -36,7 +36,7 @@ typedef SnapshotData *Snapshot; extern Snapshot SnapshotDirty; extern Snapshot QuerySnapshot; -extern Snapshot SerializableSnapshot; +extern DLLIMPORT Snapshot SerializableSnapshot; extern bool ReferentialIntegritySnapshotOverride; |