diff --git a/src/include/parser/keywords.h b/src/include/parser/keywords.h
index ebfa05d0f4d4f2afe090983fcd3543056edad24e..2b02ab0dd78569f110b794b6d208cc732b73669e 100644
--- a/src/include/parser/keywords.h
+++ b/src/include/parser/keywords.h
@@ -28,8 +28,8 @@ typedef struct ScanKeyword
 	int16		category;		/* see codes above */
 } ScanKeyword;
 
-extern const ScanKeyword ScanKeywords[];
-extern const int NumScanKeywords;
+extern PGDLLIMPORT const ScanKeyword ScanKeywords[];
+extern PGDLLIMPORT const int NumScanKeywords;
 
 extern const ScanKeyword *ScanKeywordLookup(const char *text,
 				  const ScanKeyword *keywords,