net-misc/iperf: fix build 2.2.1 on musl

Closes: https://bugs.gentoo.org/984721
Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/2156
Merges: https://codeberg.org/gentoo/gentoo/pulls/2156
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alexander Tsoy
2026-11-01 01:03:15 +00:00
committed by Sam James
parent 0499128124
commit ce97c30a8d
2 changed files with 28 additions and 1 deletions
@@ -0,0 +1,23 @@
From a25566dd66fb0ca951b3b6f6fa5a4bfaac276c71 Mon Sep 17 00:00:00 2001
From: Robert McMahon <rjmcmahon@rjmcmahon.com>
Date: Tue, 12 Nov 2024 12:06:54 -0800
Subject: [PATCH] fix for buildroot linux breakage, ticket 342
diff --git a/src/checksums.c b/src/checksums.c
index 852f1952..d7a8109e 100644
--- a/src/checksums.c
+++ b/src/checksums.c
@@ -47,6 +47,9 @@
* by Robert J. McMahon (rjmcmahon@rjmcmahon.com, bob.mcmahon@broadcom.com)
* -------------------------------------------------------------------
*/
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#include "headers.h"
/*
--
2.55.0
+5 -1
View File
@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -23,6 +23,10 @@ IUSE="debug"
# Fails w/ connection refused to just-spawned daemon
RESTRICT="test"
PATCHES=(
"${FILESDIR}/${P}-musl.patch"
)
src_configure() {
local myeconfargs=(
$(use_enable debug debuginfo)