]> git.pld-linux.org Git - packages/uhd.git/commitdiff
fix build with gcc >= 13
authorJan Palus <atler@pld-linux.org>
Wed, 5 Jul 2023 17:23:01 +0000 (19:23 +0200)
committerJan Palus <atler@pld-linux.org>
Wed, 5 Jul 2023 17:23:01 +0000 (19:23 +0200)
gcc13.patch [new file with mode: 0644]
uhd.spec

diff --git a/gcc13.patch b/gcc13.patch
new file mode 100644 (file)
index 0000000..95bfdaa
--- /dev/null
@@ -0,0 +1,11 @@
+--- uhd-4.4.0.0/mpm/lib/mykonos/ad937x_device_types.hpp.orig   2023-01-27 22:17:39.000000000 +0100
++++ uhd-4.4.0.0/mpm/lib/mykonos/ad937x_device_types.hpp        2023-07-05 19:16:33.157140559 +0200
+@@ -11,6 +11,8 @@
+ #include <uhd/types/direction.hpp>
+ #include <uhd/types/ranges.hpp>
++#include <cstdint>
++
+ namespace mpm { namespace ad937x { namespace device {
+ enum class build_type_t { RELEASE, DEBUG, TEST_OBJECT };
index 12c1aca27f0b61544a3faa4cda7ec9a6e3329ff7..d1ad0119f7c20997969d79e5309ccdc4e5784af4 100644 (file)
--- a/uhd.spec
+++ b/uhd.spec
@@ -14,6 +14,7 @@ Group:                Applications/System
 #Source0Download: https://github.com/EttusResearch/uhd/releases
 Source0:       https://github.com/EttusResearch/uhd/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: d91249b0114b2ac2fc36457f294ee55b
+Patch0:                gcc13.patch
 Patch1:                %{name}-libdir.patch
 Patch3:                %{name}-mpm-build.patch
 URL:           https://www.ettus.com/sdr-software/uhd-usrp-hardware-driver/
@@ -168,6 +169,7 @@ Biblioteka USRP Module Peripheral Manager dla Pythona.
 
 %prep
 %setup -q
+%patch0 -p1
 %patch1 -p1
 %patch3 -p1
 
This page took 0.230377 seconds and 4 git commands to generate.