From f76685b250c12f7449a3938b9a27befa812057c4 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 23 Apr 2026 18:12:10 -0400 Subject: [PATCH] Back-patch addition of PGDLLIMPORT to un-break Windows BF animals. drongo has been failing build in the v14 branch since 67d318e70: regress.obj : error LNK2001: unresolved external symbol PGLZ_strategy_always [C:\\prog\\bf\\root\\REL_14_STABLE\\pgsql.build\\regress.vcxproj] This is evidently because PGLZ_strategy_always was not marked PGDLLIMPORT in that branch. Back-patch the relevant part of 8ec569479. (Maybe we should back-patch more of it, but I'm content to just touch this one file.) --- src/include/common/pg_lzcompress.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/common/pg_lzcompress.h b/src/include/common/pg_lzcompress.h index 3e53fbe97bd..2a12b33a008 100644 --- a/src/include/common/pg_lzcompress.h +++ b/src/include/common/pg_lzcompress.h @@ -75,8 +75,8 @@ typedef struct PGLZ_Strategy * output would be larger than input. * ---------- */ -extern const PGLZ_Strategy *const PGLZ_strategy_default; -extern const PGLZ_Strategy *const PGLZ_strategy_always; +extern PGDLLIMPORT const PGLZ_Strategy *const PGLZ_strategy_default; +extern PGDLLIMPORT const PGLZ_Strategy *const PGLZ_strategy_always; /* ----------