Skip to content

Commit

Permalink
PG <= 14 misses PGDLLIMPORT on some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
df7cb committed May 29, 2024
1 parent d9cdb28 commit 8bc7be4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions concurrent.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
#include "replication/decode.h"
#include "utils/rel.h"

#if PG_VERSION_NUM < 150000
extern PGDLLIMPORT int wal_segment_size;
#endif

static void apply_concurrent_changes(DecodingOutputState *dstate,
Relation relation, ScanKey key,
int nkeys, IndexInsertState *iistate);
Expand Down
5 changes: 5 additions & 0 deletions pg_squeeze.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@
#include "utils/rel.h"
#include "utils/syscache.h"

#if PG_VERSION_NUM < 150000
extern PGDLLIMPORT int wal_segment_size;
extern PGDLLIMPORT bool FirstSnapshotSet;
#endif

#if PG_VERSION_NUM < 120000
#include "utils/tqual.h"
#endif
Expand Down

0 comments on commit 8bc7be4

Please sign in to comment.