diff --git a/src/include/replication/slot.h b/src/include/replication/slot.h index 8be8ab62a0..efcce5fdd5 100644 --- a/src/include/replication/slot.h +++ b/src/include/replication/slot.h @@ -144,7 +144,7 @@ typedef struct ReplicationSlotCtlData * Pointers to shared memory */ extern ReplicationSlotCtlData *ReplicationSlotCtl; -extern ReplicationSlot *MyReplicationSlot; +extern PGDLLIMPORT ReplicationSlot *MyReplicationSlot; /* GUCs */ extern PGDLLIMPORT int max_replication_slots;