From: Tom Lane Date: Tue, 4 Jun 2019 01:25:43 +0000 (-0400) Subject: Mark a few parallelism-related variables with PGDLLIMPORT. X-Git-Tag: REL_10_9~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=974a2867ea5da8d5a8cc31bb9c8897e118fb1a89;p=thirdparty%2Fpostgresql.git Mark a few parallelism-related variables with PGDLLIMPORT. Back-patch commit 09a65f5a2 into the 9.6 and 10 branches. Needed to support back-patch of commit 2cd4e8357 on Windows. Discussion: http://postgr.es/m/20190604011354.GD1529@paquier.xyz --- diff --git a/src/include/access/parallel.h b/src/include/access/parallel.h index dffe891ce61..f8e467f2916 100644 --- a/src/include/access/parallel.h +++ b/src/include/access/parallel.h @@ -47,8 +47,8 @@ typedef struct ParallelContext } ParallelContext; extern volatile bool ParallelMessagePending; -extern int ParallelWorkerNumber; -extern bool InitializingParallelWorker; +extern PGDLLIMPORT int ParallelWorkerNumber; +extern PGDLLIMPORT bool InitializingParallelWorker; #define IsParallelWorker() (ParallelWorkerNumber >= 0)