From c6b86eaa55ff225a7a4aa23c13e42edc4d996a44 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 16 Jan 2024 13:53:28 +0200 Subject: [PATCH] Add missing PGDLLIMPORT markings Since commit 8ec569479f, we have a policy of marking all backend variables with PGDLLIMPORT. Reported-by: Anton A. Melnikov Discussion: https://www.postgresql.org/message-id/0b78546c-ffef-4cd9-9ba1-d1e6aab88cea@postgrespro.ru --- src/include/postmaster/walsummarizer.h | 4 ++-- src/include/storage/buf_internals.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/postmaster/walsummarizer.h b/src/include/postmaster/walsummarizer.h index d6e61b59ac7..ecb4ea37fba 100644 --- a/src/include/postmaster/walsummarizer.h +++ b/src/include/postmaster/walsummarizer.h @@ -16,8 +16,8 @@ #include "access/xlogdefs.h" -extern bool summarize_wal; -extern int wal_summary_keep_time; +extern PGDLLIMPORT bool summarize_wal; +extern PGDLLIMPORT int wal_summary_keep_time; extern Size WalSummarizerShmemSize(void); extern void WalSummarizerShmemInit(void); diff --git a/src/include/storage/buf_internals.h b/src/include/storage/buf_internals.h index e43e6165796..f190e6e5e46 100644 --- a/src/include/storage/buf_internals.h +++ b/src/include/storage/buf_internals.h @@ -385,8 +385,8 @@ typedef struct CkptSortItem extern PGDLLIMPORT CkptSortItem *CkptBufferIds; /* ResourceOwner callbacks to hold buffer I/Os and pins */ -extern const ResourceOwnerDesc buffer_io_resowner_desc; -extern const ResourceOwnerDesc buffer_pin_resowner_desc; +extern PGDLLIMPORT const ResourceOwnerDesc buffer_io_resowner_desc; +extern PGDLLIMPORT const ResourceOwnerDesc buffer_pin_resowner_desc; /* Convenience wrappers over ResourceOwnerRemember/Forget */ static inline void -- 2.30.2