summaryrefslogtreecommitdiffhomepage
path: root/patches
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2024-07-02 20:09:01 +0200
committerØrjan Malde <red@foxi.me>2024-07-02 20:09:01 +0200
commite45bd4ceb58f4638950f13e26dbb0d673d2e6636 (patch)
treef869f4fa15cfb59abdb749f09a3c3e9d6b9d4817 /patches
parentcf47f9b567413f4110b6d649d4e0b52f94568aa2 (diff)
downloadmidipix_build-e45bd4ceb58f4638950f13e26dbb0d673d2e6636.tar.bz2
midipix_build-e45bd4ceb58f4638950f13e26dbb0d673d2e6636.tar.xz
groups.d/241.native_packages_inet.d/iperf.package: adds v3.17.1
Signed-off-by: Ørjan Malde <red@foxi.me>
Diffstat (limited to 'patches')
-rw-r--r--patches/iperf-3.17.1.local.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/iperf-3.17.1.local.patch b/patches/iperf-3.17.1.local.patch
new file mode 100644
index 00000000..35e28260
--- /dev/null
+++ b/patches/iperf-3.17.1.local.patch
@@ -0,0 +1,32 @@
+diff -ru iperf-3.17.1.orig/src/iperf_api.h iperf-3.17.1/src/iperf_api.h
+--- iperf-3.17.1.orig/src/iperf_api.h 2024-05-13 20:40:55.000000000 +0200
++++ iperf-3.17.1/src/iperf_api.h 2024-07-02 20:05:03.818580250 +0200
+@@ -44,7 +44,7 @@
+ #include <stdatomic.h>
+ #else
+ #warning "No <stdatomic.h> available"
+-typedef u_int64_t atomic_uint_fast64_t;
++typedef uint64_t atomic_uint_fast64_t;
+ #endif // HAVE_STDATOMIC_H
+
+ struct iperf_test;
+diff -ru iperf-3.17.1.orig/src/main.c iperf-3.17.1/src/main.c
+--- iperf-3.17.1.orig/src/main.c 2024-05-13 20:40:55.000000000 +0200
++++ iperf-3.17.1/src/main.c 2024-07-02 20:04:06.908582670 +0200
+@@ -65,15 +65,6 @@
+ * know how to check this on GCC. GCC on CentOS 7 / RHEL 7 is the
+ * targeted use case for these check.
+ */
+-#ifndef HAVE_STDATOMIC_H
+-#ifdef __GNUC__
+- if (! __atomic_always_lock_free (sizeof (u_int64_t), 0)) {
+-#endif // __GNUC__
+- fprintf(stderr, "Warning: Cannot guarantee lock-free operation with 64-bit data types\n");
+-#ifdef __GNUC__
+- }
+-#endif // __GNUC__
+-#endif // HAVE_STDATOMIC_H
+
+ // XXX: Setting the process affinity requires root on most systems.
+ // Is this a feature we really need?
+Only in iperf-3.17.1/src: main.c.orig