Add missing #include for gcc-11

This commit is contained in:
Jeff Law 2020-10-14 08:04:27 -06:00
parent 6c620b8cf5
commit 36949051bc
2 changed files with 18 additions and 1 deletions

12
fuse3-gcc11.patch Normal file
View File

@ -0,0 +1,12 @@
diff --git a/example/cxxopts.hpp b/example/cxxopts.hpp
index 6fd170d..6906e3b 100644
--- a/example/cxxopts.hpp
+++ b/example/cxxopts.hpp
@@ -37,6 +37,7 @@ THE SOFTWARE.
#include <unordered_map>
#include <unordered_set>
#include <vector>
+#include <limits>
#ifdef __cpp_lib_optional
#include <optional>

View File

@ -1,11 +1,12 @@
Name: fuse3
Version: 3.10.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: File System in Userspace (FUSE) v3 utilities
License: GPL+
URL: http://fuse.sf.net
Source0: https://github.com/libfuse/libfuse/archive/fuse-%{version}.tar.gz
Source1: fuse.conf
Patch0: fuse3-gcc11.patch
BuildRequires: which
%if ! 0%{?el6}
@ -65,6 +66,7 @@ Common files for FUSE v2 and FUSE v3.
%prep
%setup -n libfuse-fuse-%{version}
%patch0 -p1
%build
export LC_ALL=en_US.UTF-8
@ -154,6 +156,9 @@ rm -f %{buildroot}/usr/lib/udev/rules.d/99-fuse3.rules
%endif
%changelog
* Wed Oct 14 2020 Jeff Law <law@redhat.com> - 3.10.0-2
- Add missing #include for gcc-11
* Mon Oct 12 2020 Tom Callaway <spot@fedoraproject.org> - 3.10.0-1
- update to 3.10.0
- enable lto