]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Back-patch addition of PGDLLIMPORT to un-break Windows BF animals.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 23 Apr 2026 22:12:10 +0000 (18:12 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 23 Apr 2026 22:12:10 +0000 (18:12 -0400)
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

index 3e53fbe97bd0a10e3fbf7ed4396924084f657868..2a12b33a008024e1eefcafe202b97b37cdd561c0 100644 (file)
@@ -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;
 
 
 /* ----------