Added fix for gcc-11

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2021-01-26 01:19:00 +01:00
parent 9833c761ac
commit 7e9476da6c
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff --git a/host/lib/include/uhdlib/utils/rpc.hpp b/host/lib/include/uhdlib/utils/rpc.hpp
index e87a2ee..57744fe 100644
--- a/host/lib/include/uhdlib/utils/rpc.hpp
+++ b/host/lib/include/uhdlib/utils/rpc.hpp
@@ -13,6 +13,7 @@
#include <rpc/rpc_error.h>
#include <boost/format.hpp>
#include <memory>
+#include <chrono>
namespace {

View File

@ -48,6 +48,7 @@ Summary: Universal Hardware Driver for Ettus Research products
Source0: %{url}/archive/v%{version}/uhd-%{version}.tar.gz
Source1: %{name}-limits.conf
Source2: %{url}/releases/download/v%{version}/uhd-images_%{version}.tar.xz
Patch0: uhd-4.0.0.0-gcc-11-fix.patch
%description
The UHD is the universal hardware driver for Ettus Research products.
@ -95,6 +96,7 @@ Wireshark dissector plugins.
%prep
%setup -q
%patch0 -p1 -b .gcc-11-fix
# firmware
%if %{with binary_firmware}