e2fsprogs: bump to 1.44.0
[openwrt/staging/wigyori.git] / package / network / utils / iperf3 / patches / 010-iperf-3.3-fix-build-warnings.patch
1 The following patches are taken directly from:
2
3 https://github.com/esnet/iperf/pull/664
4
5 as an upstream submission.
6
7 commit 9a66b3b0349e0a158bb4940b668a5cbc7c245762
8 Author: Philip Prindeville <philipp@redfish-solutions.com>
9 Date: Tue Oct 31 13:44:34 2017 -0600
10
11 Simplify endianness checks
12
13 Linux can be built with too many types of C run-time library and it's
14 not reasonable to have to enumerate all of them, especially since at
15 least one of them (MUSL) goes out of its way to not be easily
16 detectable.
17
18 Instead, leverage autoconf better for Linux/BSD to detect either
19 <endian.h> or <sys/endian.h> directly.
20
21 Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
22
23 diff --git a/configure.ac b/configure.ac
24 index f57e83f..cfb42ac 100644
25 --- a/configure.ac
26 +++ b/configure.ac
27 @@ -103,6 +103,14 @@ AC_CHECK_HEADERS([netinet/sctp.h],
28 #endif
29 ])
30
31 +AC_CHECK_HEADER([endian.h],
32 + AC_DEFINE([HAVE_ENDIAN_H], [1], [Define to 1 if you have the <endian.h> header file.]),
33 + AC_CHECK_HEADER([sys/endian.h],
34 + AC_DEFINE([HAVE_SYS_ENDIAN_H], [1], [Define to 1 if you have the <sys/endian.h> header file.]),
35 + AC_MSG_WARN([Couldn't find endian.h or sys/endian.h files: doing compile-time tests.])
36 + )
37 + )
38 +
39 if test "x$with_openssl" = "xno"; then
40 AC_MSG_WARN( [Building without OpenSSL; disabling iperf_auth functionality.] )
41 else
42 diff --git a/src/iperf_config.h.in b/src/iperf_config.h.in
43 index bd03935..a9e51ec 100644
44 --- a/src/iperf_config.h.in
45 +++ b/src/iperf_config.h.in
46 @@ -15,6 +15,9 @@
47 /* Define to 1 if you have the <dlfcn.h> header file. */
48 #undef HAVE_DLFCN_H
49
50 +/* Define to 1 if you have the <endian.h> header file. */
51 +#undef HAVE_ENDIAN_H
52 +
53 /* Have IPv6 flowlabel support. */
54 #undef HAVE_FLOWLABEL
55
56 @@ -69,6 +69,9 @@
57 /* Define to 1 if the system has the type `struct sctp_assoc_value'. */
58 #undef HAVE_STRUCT_SCTP_ASSOC_VALUE
59
60 +/* Define to 1 if you have the <sys/endian.h> header file. */
61 +#undef HAVE_SYS_ENDIAN_H
62 +
63 /* Define to 1 if you have the <sys/socket.h> header file. */
64 #undef HAVE_SYS_SOCKET_H
65