Add missing #includes for gcc-11

This commit is contained in:
Jeff Law 2020-10-14 07:33:56 -06:00
parent 10c416b0a2
commit 1fd5dca7dc
2 changed files with 29 additions and 1 deletions

24
endless-sky-gcc11.patch Normal file
View File

@ -0,0 +1,24 @@
diff --git a/source/MapDetailPanel.cpp b/source/MapDetailPanel.cpp
index 79e023d..3786d90 100644
--- source/MapDetailPanel.cpp
+++ source/MapDetailPanel.cpp
@@ -44,6 +44,7 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details.
#include <set>
#include <utility>
#include <vector>
+#include <limits>
using namespace std;
diff --git a/source/PlayerInfo.cpp b/source/PlayerInfo.cpp
index 8630b98..003fa10 100644
--- source/PlayerInfo.cpp
+++ source/PlayerInfo.cpp
@@ -42,6 +42,7 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details.
#include <cmath>
#include <ctime>
#include <sstream>
+#include <limits>
using namespace std;

View File

@ -2,7 +2,7 @@
Name: endless-sky
Version: 0.9.12
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Space exploration, trading, and combat game
License: GPLv3
@ -17,6 +17,7 @@ Patch0: endless-sky-0.8.10-remove-games-path.patch
# Unset CCFLAGS override inside SConstruct.
Patch1: endless-sky-0.9.4-remove-additional-ccflags.patch
Patch2: endless-sky-0.9.10-gcc10.patch
Patch3: endless-sky-gcc11.patch
Requires: %{name}-data = %{version}-%{release}
BuildRequires: scons
@ -105,6 +106,9 @@ sed -i 's|/app|%{_prefix}|g' %{buildroot}%{_bindir}/%{name}
%changelog
* Wed Oct 14 2020 Jeff Law <law@redhat.com> - 0.9.12-3
- Add missing #includes for gcc-11
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild