Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fa1f0d7

Browse files
committed
PGDLLIMPORT-ify MainLWLockArray, ProcDiePending, proc_exit_inprogress.
These are needed in HEAD to make assorted contrib modules build on Windows. Now that all the MSVC and Mingw buildfarm members seem to be on the same page about the need for them, we can have some confidence that future problems of this ilk will be detected promptly; there seems nothing more to be learned by delaying this fix further. I chose to mark QueryCancelPending as well, since it's easy to imagine code that wants to touch ProcDiePending also caring about QueryCancelPending.
1 parent a1c8027 commit fa1f0d7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/include/miscadmin.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
/* in globals.c */
7575
/* these are marked volatile because they are set by signal handlers: */
7676
extern PGDLLIMPORT volatile bool InterruptPending;
77-
extern volatile bool QueryCancelPending;
78-
extern volatile bool ProcDiePending;
77+
extern PGDLLIMPORT volatile bool QueryCancelPending;
78+
extern PGDLLIMPORT volatile bool ProcDiePending;
7979

8080
extern volatile bool ClientConnectionLost;
8181

src/include/storage/ipc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ typedef void (*shmem_startup_hook_type) (void);
6262

6363

6464
/* ipc.c */
65-
extern bool proc_exit_inprogress;
65+
extern PGDLLIMPORT bool proc_exit_inprogress;
6666

6767
extern void proc_exit(int code) __attribute__((noreturn));
6868
extern void shmem_exit(int code);

src/include/storage/lwlock.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ typedef union LWLockPadded
8080
LWLock lock;
8181
char pad[LWLOCK_PADDED_SIZE];
8282
} LWLockPadded;
83-
extern LWLockPadded *MainLWLockArray;
83+
extern PGDLLIMPORT LWLockPadded *MainLWLockArray;
8484

8585
/*
8686
* Some commonly-used locks have predefined positions within MainLWLockArray;

0 commit comments

Comments
 (0)