diff --git a/cad/freecad/files/patch-src_Gui_Selection.h b/cad/freecad/files/patch-src_Gui_Selection.h
new file mode 100644
index 0000000000000000000000000000000000000000..0051dc1cd6e809a79b3ae101c245c109b7744063
--- /dev/null
+++ b/cad/freecad/files/patch-src_Gui_Selection.h
@@ -0,0 +1,10 @@
+--- src/Gui/Selection.h.orig	2023-01-21 23:23:47.647852000 +0100
++++ src/Gui/Selection.h	2023-01-21 23:24:04.167678000 +0100
+@@ -25,6 +25,7 @@
+ #define GUI_SELECTION_H
+ 
+ #include <deque>
++#include <array>
+ #include <list>
+ #include <string>
+ #include <vector>
diff --git a/cad/freecad/files/patch-src_Gui_SoFCSelection.h b/cad/freecad/files/patch-src_Gui_SoFCSelection.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d09d72c281fb2d88a95e744d1757306ba27a070
--- /dev/null
+++ b/cad/freecad/files/patch-src_Gui_SoFCSelection.h
@@ -0,0 +1,11 @@
+--- ./src/Gui/SoFCSelection.h.orig	2023-01-21 22:41:40.507560000 +0100
++++ ./src/Gui/SoFCSelection.h	2023-01-21 22:42:27.657720000 +0100
+@@ -35,6 +35,8 @@
+ # include <GL/gl.h>
+ # endif
+ 
++#include <array>
++
+ #include <Inventor/elements/SoLazyElement.h>
+ #include <Inventor/fields/SoSFBool.h>
+ #include <Inventor/fields/SoSFColor.h>
diff --git a/cad/freecad/files/patch-src_Gui_SoFCUnifiedSelection.h b/cad/freecad/files/patch-src_Gui_SoFCUnifiedSelection.h
new file mode 100644
index 0000000000000000000000000000000000000000..d4ac79b033a9f5ecde372d7e1e0e49ed0918895e
--- /dev/null
+++ b/cad/freecad/files/patch-src_Gui_SoFCUnifiedSelection.h
@@ -0,0 +1,10 @@
+--- src/Gui/SoFCUnifiedSelection.h.orig	2023-01-21 23:07:09.710205000 +0100
++++ src/Gui/SoFCUnifiedSelection.h	2023-01-21 23:07:38.508972000 +0100
+@@ -23,6 +23,7 @@
+ #ifndef GUI_SOFCUNIFIEDSELECTION_H
+ #define GUI_SOFCUNIFIEDSELECTION_H
+ 
++#include <array>
+ #include <list>
+ #include <unordered_map>
+ #include <unordered_set>
diff --git a/cad/freecad/files/patch-src_Mod_Import_App_ImportOCAF2.h b/cad/freecad/files/patch-src_Mod_Import_App_ImportOCAF2.h
new file mode 100644
index 0000000000000000000000000000000000000000..807f2c01750e42c4452e96e152665bb944299148
--- /dev/null
+++ b/cad/freecad/files/patch-src_Mod_Import_App_ImportOCAF2.h
@@ -0,0 +1,10 @@
+--- src/Mod/Import/App/ImportOCAF2.h.orig	2023-01-21 23:09:25.522104000 +0100
++++ src/Mod/Import/App/ImportOCAF2.h	2023-01-21 23:09:52.176852000 +0100
+@@ -30,6 +30,7 @@
+ #include <TDF_LabelMapHasher.hxx>
+ #include <climits>
+ #include <string>
++#include <array>
+ #include <set>
+ #include <map>
+ #include <unordered_map>