diff --git a/src/include/replication/slot.h b/src/include/replication/slot.h
index 7964ae254f4bac0ccab4d9a49f3c8fa8c44764ed..41a830954ebe3eb8b1520fabbfeabec866857b70 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 */