diff --git a/compiler/HsVersions.h b/compiler/HsVersions.h
index d488a0f0c5ae217a911556677ed06a7b16b50724..c46d5c897ffb42372ad2d41f6b6109ad7eaa93c9 100644
--- a/compiler/HsVersions.h
+++ b/compiler/HsVersions.h
@@ -1,5 +1,8 @@
 #pragma once
 
+-- For GHC_STAGE
+#include "ghcplatform.h"
+
 #if 0
 
 IMPORTANT!  If you put extra tabs/spaces in these macro definitions,