diff --git a/indra/llprimitive/llgltfmaterial.h b/indra/llprimitive/llgltfmaterial.h
index a078a530a4bf656d8a3c022381faca5035032282..822a0aab229fa6d60284cba064cbd5a6e92a8ab9 100644
--- a/indra/llprimitive/llgltfmaterial.h
+++ b/indra/llprimitive/llgltfmaterial.h
@@ -34,6 +34,7 @@
 #include "lluuid.h"
 #include "hbxxh.h"
 
+#include <array>
 #include <string>
 #include <map>
 
diff --git a/indra/llrender/llrender.h b/indra/llrender/llrender.h
index 98141d71f5917d61ba68912300312778aca2399b..fd922affbabe219dfda2ca9713abce09e89b0407 100644
--- a/indra/llrender/llrender.h
+++ b/indra/llrender/llrender.h
@@ -44,6 +44,8 @@
 #include "llmatrix4a.h"
 #include "glh/glh_linear.h"
 
+#include <array>
+
 class LLVertexBuffer;
 class LLCubeMap;
 class LLImageGL;