uhd: fix build for gcc 12

This commit is contained in:
Đoàn Trần Công Danh 2022-10-13 20:28:55 +07:00
parent 0242b9fb52
commit fad77c8511

View file

@ -0,0 +1,27 @@
Index: uhd-4.0.0.0/host/lib/usrp/dboard/e3xx/e3xx_radio_control_impl.cpp
===================================================================
--- uhd-4.0.0.0.orig/host/lib/usrp/dboard/e3xx/e3xx_radio_control_impl.cpp
+++ uhd-4.0.0.0/host/lib/usrp/dboard/e3xx/e3xx_radio_control_impl.cpp
@@ -17,6 +17,7 @@
#include <cmath>
#include <cstdlib>
#include <sstream>
+#include <thread>
using namespace uhd;
using namespace uhd::usrp;
Index: uhd-4.0.0.0/host/lib/include/uhdlib/utils/rpc.hpp
===================================================================
--- uhd-4.0.0.0.orig/host/lib/include/uhdlib/utils/rpc.hpp
+++ uhd-4.0.0.0/host/lib/include/uhdlib/utils/rpc.hpp
@@ -12,7 +12,10 @@
#include <rpc/client.h>
#include <rpc/rpc_error.h>
#include <boost/format.hpp>
+#include <chrono>
#include <memory>
+#include <string>
+#include <thread>
namespace {