Add patch for missing limits header
This commit is contained in:
parent
a9b87cd299
commit
cadfebbdb8
|
@ -0,0 +1,11 @@
|
|||
diff -up ./absl/synchronization/internal/graphcycles.cc.gcc11 ./absl/synchronization/internal/graphcycles.cc
|
||||
--- ./absl/synchronization/internal/graphcycles.cc.gcc11 2020-12-19 11:39:31.244272590 -0500
|
||||
+++ ./absl/synchronization/internal/graphcycles.cc 2020-12-19 11:39:53.069335816 -0500
|
||||
@@ -37,6 +37,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
+#include <limits>
|
||||
#include "absl/base/internal/hide_ptr.h"
|
||||
#include "absl/base/internal/raw_logging.h"
|
||||
#include "absl/base/internal/spinlock.h"
|
|
@ -10,6 +10,9 @@ License: ASL 2.0
|
|||
URL: https://abseil.io
|
||||
Source0: https://github.com/abseil/abseil-cpp/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
# Explicitly include <limits> for std::numeric_limits
|
||||
Patch0: %{name}-20200923.2.gcc11.patch
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
|
@ -36,7 +39,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||
Development headers for %{name}
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
%autosetup -p1
|
||||
|
||||
|
||||
%build
|
||||
|
|
Loading…
Reference in New Issue