kumquat-buildroot/package/libteam/0002-fix-build-on-openwrt-musl-libc.patch
Joachim Wiberg 7485f5be0c package/libteam: new package
This package is the userspace daemon, client tool, and library for the
team device implementation in the Linux kernel.  Team is an alternative
to the traditional bonding driver and provides more "runners", or modes,
of operation for aggregates.  None of these modes are enabled by default
and need a custom kernel config.

Backported the three most relevant patches to fix musl build, revert of
a fix prior to 1.31 that can cause high CPU load, and a fix to prevent
failing to stop the daemon due to too short timeout for kill command.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
[yann.morin.1998@free.fr: slight reword in help text]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-11-05 21:59:05 +01:00

42 lines
1.2 KiB
Diff

From 267f24839536234ca621d4fd0466d3b57cb6dccd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20=C5=A0imerda?= <code@simerda.eu>
Date: Tue, 12 Jan 2021 04:41:56 +0100
Subject: [PATCH] fix build on OpenWRT/musl-libc
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Pavel Šimerda <code@simerda.eu>
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
---
teamd/teamd_runner_lacp.c | 2 --
utils/teamnl.c | 1 +
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/teamd/teamd_runner_lacp.c b/teamd/teamd_runner_lacp.c
index 9437f05..f524be2 100644
--- a/teamd/teamd_runner_lacp.c
+++ b/teamd/teamd_runner_lacp.c
@@ -23,9 +23,7 @@
#include <unistd.h>
#include <limits.h>
#include <sys/ioctl.h>
-#include <linux/if_ether.h>
#include <sys/socket.h>
-#include <linux/netdevice.h>
#include <netinet/in.h>
#include <errno.h>
#include <team.h>
diff --git a/utils/teamnl.c b/utils/teamnl.c
index c53345d..ec2b435 100644
--- a/utils/teamnl.c
+++ b/utils/teamnl.c
@@ -24,6 +24,7 @@
#include <getopt.h>
#include <errno.h>
#include <sys/signalfd.h>
+#include <sys/select.h>
#include <signal.h>
#include <unistd.h>
#include <team.h>