Index: patches/patch-src_Engine_Language_cpp
===================================================================
RCS file: patches/patch-src_Engine_Language_cpp
diff -N patches/patch-src_Engine_Language_cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_Engine_Language_cpp	16 Sep 2021 14:15:40 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+
+Index: src/Engine/Language.cpp
+--- src/Engine/Language.cpp.orig
++++ src/Engine/Language.cpp
+@@ -17,6 +17,7 @@
+  * along with OpenXcom.  If not, see <http://www.gnu.org/licenses/>.
+  */
+ #include "Language.h"
++#include <algorithm>
+ #include <assert.h>
+ #include <locale>
+ #include <fstream>
Index: patches/patch-src_Engine_OptionInfo_cpp
===================================================================
RCS file: patches/patch-src_Engine_OptionInfo_cpp
diff -N patches/patch-src_Engine_OptionInfo_cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_Engine_OptionInfo_cpp	16 Sep 2021 14:15:40 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+
+Index: src/Engine/OptionInfo.cpp
+--- src/Engine/OptionInfo.cpp.orig
++++ src/Engine/OptionInfo.cpp
+@@ -16,6 +16,7 @@
+  * You should have received a copy of the GNU General Public License
+  * along with OpenXcom.  If not, see <http://www.gnu.org/licenses/>.
+  */
++#include <algorithm>
+ #include "OptionInfo.h"
+ #include "Exception.h"
+ 
Index: patches/patch-src_Menu_ListGamesState_cpp
===================================================================
RCS file: patches/patch-src_Menu_ListGamesState_cpp
diff -N patches/patch-src_Menu_ListGamesState_cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_Menu_ListGamesState_cpp	16 Sep 2021 14:15:40 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+
+Index: src/Menu/ListGamesState.cpp
+--- src/Menu/ListGamesState.cpp.orig
++++ src/Menu/ListGamesState.cpp
+@@ -17,6 +17,7 @@
+  * along with OpenXcom.  If not, see <http://www.gnu.org/licenses/>.
+  */
+ #include "ListGamesState.h"
++#include <algorithm>
+ #include <utility>
+ #include "../Engine/Logger.h"
+ #include "../Savegame/SavedGame.h"
Index: patches/patch-src_Menu_ListLoadState_cpp
===================================================================
RCS file: patches/patch-src_Menu_ListLoadState_cpp
diff -N patches/patch-src_Menu_ListLoadState_cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_Menu_ListLoadState_cpp	16 Sep 2021 14:15:40 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+
+Index: src/Menu/ListLoadState.cpp
+--- src/Menu/ListLoadState.cpp.orig
++++ src/Menu/ListLoadState.cpp
+@@ -16,6 +16,7 @@
+  * You should have received a copy of the GNU General Public License
+  * along with OpenXcom.  If not, see <http://www.gnu.org/licenses/>.
+  */
++#include <algorithm>
+ #include "ListLoadState.h"
+ #include "../Engine/Game.h"
+ #include "../Engine/Language.h"
Index: patches/patch-src_Savegame_Craft_cpp
===================================================================
RCS file: patches/patch-src_Savegame_Craft_cpp
diff -N patches/patch-src_Savegame_Craft_cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_Savegame_Craft_cpp	16 Sep 2021 14:15:40 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+
+Index: src/Savegame/Craft.cpp
+--- src/Savegame/Craft.cpp.orig
++++ src/Savegame/Craft.cpp
+@@ -18,6 +18,7 @@
+  */
+ #define _USE_MATH_DEFINES
+ #include "Craft.h"
++#include <algorithm>
+ #include <cmath>
+ #include <sstream>
+ #include "../Engine/Language.h"
