diff --git a/src/include/replication/slot.h b/src/include/replication/slot.h
index 0c442330b227ac6f583ea8bb3e6a81e19adf5b01..c3b7cc8d622bdf818fe2dd23c61cf72e389faafb 100644
--- a/src/include/replication/slot.h
+++ b/src/include/replication/slot.h
@@ -156,7 +156,7 @@ typedef struct ReplicationSlotCtlData
 /*
  * Pointers to shared memory
  */
-extern ReplicationSlotCtlData *ReplicationSlotCtl;
+extern PGDLLIMPORT ReplicationSlotCtlData *ReplicationSlotCtl;
 extern PGDLLIMPORT ReplicationSlot *MyReplicationSlot;
 
 /* GUCs */