Add missing #includes for gcc-11

epel9
Jeff Law 4 years ago
parent 9792bc0226
commit 3ea94e5f64

@ -0,0 +1,12 @@
diff --git a/_studio/mfx_lib/mctf_package/mctf/src/mctf_common.cpp b/_studio/mfx_lib/mctf_package/mctf/src/mctf_common.cpp
index 5774702..ed1c1b7 100644
--- a/_studio/mfx_lib/mctf_package/mctf/src/mctf_common.cpp
+++ b/_studio/mfx_lib/mctf_package/mctf/src/mctf_common.cpp
@@ -44,6 +44,7 @@
#include <algorithm>
#include <climits>
#include <cmath>
+#include <limits>
#include "cmrt_cross_platform.h"
using std::min;

@ -5,11 +5,12 @@
Summary: Hardware-accelerated video processing on Intel integrated GPUs library Summary: Hardware-accelerated video processing on Intel integrated GPUs library
Name: intel-mediasdk Name: intel-mediasdk
Version: 20.3.0 Version: 20.3.0
Release: 1%{?dist} Release: 2%{?dist}
URL: http://mediasdk.intel.com URL: http://mediasdk.intel.com
Source0: https://github.com/Intel-Media-SDK/MediaSDK/archive/%{name}-%{version}.tar.gz Source0: https://github.com/Intel-Media-SDK/MediaSDK/archive/%{name}-%{version}.tar.gz
# don't require Intel ICD at build time # don't require Intel ICD at build time
Patch0: %{name}-no-icd.patch Patch0: %{name}-no-icd.patch
Patch1: %{name}-gcc11.patch
License: MIT License: MIT
ExclusiveArch: x86_64 ExclusiveArch: x86_64
BuildRequires: cmake3 BuildRequires: cmake3
@ -64,6 +65,7 @@ questions and issues.
%prep %prep
%setup -q -n MediaSDK-%{name}-%{version} %setup -q -n MediaSDK-%{name}-%{version}
%patch0 -p1 -b .no-icd %patch0 -p1 -b .no-icd
%patch1 -p1 -b .gcc11
%build %build
%cmake3 \ %cmake3 \
@ -111,6 +113,9 @@ questions and issues.
%{_libdir}/libmfx-tracer.so.%{mfx_version} %{_libdir}/libmfx-tracer.so.%{mfx_version}
%changelog %changelog
* Wed Oct 14 2020 Jeff Law <law@redhat.com> - 20.3.0-2
- Add missing #includes for gcc-11
* Fri Oct 02 2020 Dominik Mierzejewski <rpm@greysector.net> - 20.3.0-1 * Fri Oct 02 2020 Dominik Mierzejewski <rpm@greysector.net> - 20.3.0-1
- update to 20.3.0 (#1884321) - update to 20.3.0 (#1884321)

Loading…
Cancel
Save