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