Skip to contentSkip to conversation

package/iperf: fix build

Buildroot Thomas Petazzoni 1 participant 1 message Dec 17, 2021

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=cffac91af5756bbca46072979ce23d9916386743
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fix the following build failure raised since bump to version 2.1.5 in commit ca39eb212e32ca209cb3d6011847f9c94641fa73:

gettcpinfo.c: In function 'gettcpinfo':
gettcpinfo.c:101:42: error: expected declaration or statement at end of input
101 | inline void gettcpinfo (int sock, struct ReportStruct *sample) {
| ^~~~~~~~~~~~

Fixes:
- http://autobuild.buildroot.org/results/073e070478f0cda34784af96bb3a802c3aac8f72

---
 .../iperf/0002-compat-gettcpinfo.c-fix-build.patch | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)
package/iperf/0002-compat-gettcpinfo.c-fix-build.patch new file +34 -0
new file mode 100644
index 0000000000..786c7d1873
@@ -0,0 +1,34 @@
+From a3339604bafa99f66e12687efc2c50d2e2df1276 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Sun, 12 Dec 2021 20:03:04 +0100
+Subject: [PATCH] compat/gettcpinfo.c: fix build
+
+Fix the following build failure raised since commit
+c8f861a0a07b0606a581f2658c71959ad9417923:
+
+gettcpinfo.c: In function 'gettcpinfo':
+gettcpinfo.c:101:42: error: expected declaration or statement at end of input
+  101 | inline void gettcpinfo (int sock, struct ReportStruct *sample) {
+      |                                          ^~~~~~~~~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/073e070478f0cda34784af96bb3a802c3aac8f72
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ compat/gettcpinfo.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/compat/gettcpinfo.c b/compat/gettcpinfo.c
+index 4e11e2a..1d3791a 100644
+--- a/compat/gettcpinfo.c
++++ b/compat/gettcpinfo.c
+@@ -99,4 +99,5 @@ inline void gettcpinfo (SOCKET sock, struct ReportStruct *sample) {
+ };
+ #else
+ inline void gettcpinfo (int sock, struct ReportStruct *sample) {
++};
+ #endif
+-- 
+2.33.0
+

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot