From: Tom Lane Date: Thu, 23 Apr 2026 22:12:10 +0000 (-0400) Subject: Back-patch addition of PGDLLIMPORT to un-break Windows BF animals. X-Git-Tag: REL_14_23~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f76685b250c12f7449a3938b9a27befa812057c4;p=thirdparty%2Fpostgresql.git 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.) --- 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; /* ----------