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