Unbreak build on sparc64.

OK kmos@
This commit is contained in:
kirby 2021-09-17 21:04:11 +00:00
parent c61919171b
commit b56240853f
5 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_Engine_Language_cpp,v 1.1 2021/09/17 21:04:11 kirby Exp $
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>

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_Engine_OptionInfo_cpp,v 1.1 2021/09/17 21:04:11 kirby Exp $
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"

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_Menu_ListGamesState_cpp,v 1.1 2021/09/17 21:04:11 kirby Exp $
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"

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_Menu_ListLoadState_cpp,v 1.1 2021/09/17 21:04:11 kirby Exp $
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"

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_Savegame_Craft_cpp,v 1.1 2021/09/17 21:04:11 kirby Exp $
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"