Blame patches/iperf-3.17.1.local.patch

e45bd4
diff -ru iperf-3.17.1.orig/src/iperf_api.h iperf-3.17.1/src/iperf_api.h
e45bd4
--- iperf-3.17.1.orig/src/iperf_api.h	2024-05-13 20:40:55.000000000 +0200
e45bd4
+++ iperf-3.17.1/src/iperf_api.h	2024-07-02 20:05:03.818580250 +0200
e45bd4
@@ -44,7 +44,7 @@
e45bd4
 #include <stdatomic.h>
e45bd4
 #else
e45bd4
 #warning "No <stdatomic.h> available"
e45bd4
-typedef u_int64_t atomic_uint_fast64_t;
e45bd4
+typedef uint64_t atomic_uint_fast64_t;
e45bd4
 #endif // HAVE_STDATOMIC_H
e45bd4
 
e45bd4
 struct iperf_test;
e45bd4
diff -ru iperf-3.17.1.orig/src/main.c iperf-3.17.1/src/main.c
e45bd4
--- iperf-3.17.1.orig/src/main.c	2024-05-13 20:40:55.000000000 +0200
e45bd4
+++ iperf-3.17.1/src/main.c	2024-07-02 20:04:06.908582670 +0200
e45bd4
@@ -65,15 +65,6 @@
e45bd4
      * know how to check this on GCC. GCC on CentOS 7 / RHEL 7 is the
e45bd4
      * targeted use case for these check.
e45bd4
      */
e45bd4
-#ifndef HAVE_STDATOMIC_H
e45bd4
-#ifdef __GNUC__
e45bd4
-    if (! __atomic_always_lock_free (sizeof (u_int64_t), 0)) {
e45bd4
-#endif // __GNUC__
e45bd4
-        fprintf(stderr, "Warning: Cannot guarantee lock-free operation with 64-bit data types\n");
e45bd4
-#ifdef __GNUC__
e45bd4
-    }
e45bd4
-#endif // __GNUC__
e45bd4
-#endif // HAVE_STDATOMIC_H
e45bd4
 
e45bd4
     // XXX: Setting the process affinity requires root on most systems.
e45bd4
     //      Is this a feature we really need?
e45bd4
Only in iperf-3.17.1/src: main.c.orig