mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 14:25:53 +01:00
libteam: Include missing headers for strrchr and memcmp
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
7d099808f0
commit
03b66442a5
|
|
@ -0,0 +1,46 @@
|
||||||
|
From 49693cac37ee35ff673240c8060201efe0d999c2 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Wed, 24 Aug 2022 22:27:03 -0700
|
||||||
|
Subject: [PATCH] teamd: Include missing headers for strrchr and memcmp
|
||||||
|
|
||||||
|
Compiler does not see the prototype for these functions otherwise and
|
||||||
|
build fails e.g.
|
||||||
|
|
||||||
|
| ../../git/teamd/teamd_phys_port_check.c:52:10: error: call to undeclared library function 'strrchr' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
|
||||||
|
| start = strrchr(link, '/');
|
||||||
|
| ^
|
||||||
|
|
||||||
|
Upstream-Status: Submitted [https://github.com/jpirko/libteam/pull/68]
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
teamd/teamd_phys_port_check.c | 1 +
|
||||||
|
teamd/teamd_runner_loadbalance.c | 1 +
|
||||||
|
2 files changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/teamd/teamd_phys_port_check.c b/teamd/teamd_phys_port_check.c
|
||||||
|
index 1eec129..c2454ab 100644
|
||||||
|
--- a/teamd/teamd_phys_port_check.c
|
||||||
|
+++ b/teamd/teamd_phys_port_check.c
|
||||||
|
@@ -19,6 +19,7 @@
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <errno.h>
|
||||||
|
+#include <string.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
diff --git a/teamd/teamd_runner_loadbalance.c b/teamd/teamd_runner_loadbalance.c
|
||||||
|
index a581472..421a7c6 100644
|
||||||
|
--- a/teamd/teamd_runner_loadbalance.c
|
||||||
|
+++ b/teamd/teamd_runner_loadbalance.c
|
||||||
|
@@ -17,6 +17,7 @@
|
||||||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
+#include <string.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <linux/netdevice.h>
|
||||||
|
#include <team.h>
|
||||||
|
--
|
||||||
|
2.37.2
|
||||||
|
|
||||||
|
|
@ -13,6 +13,7 @@ SRC_URI = "git://github.com/jpirko/libteam;branch=master;protocol=https \
|
||||||
file://0001-team_basic_test.py-disable-RedHat-specific-test.patch \
|
file://0001-team_basic_test.py-disable-RedHat-specific-test.patch \
|
||||||
file://0001-team_basic_test.py-switch-to-python3.patch \
|
file://0001-team_basic_test.py-switch-to-python3.patch \
|
||||||
file://0001-team_basic_test.py-check-the-return-value.patch \
|
file://0001-team_basic_test.py-check-the-return-value.patch \
|
||||||
|
file://0001-teamd-Include-missing-headers-for-strrchr-and-memcmp.patch \
|
||||||
file://run-ptest \
|
file://run-ptest \
|
||||||
"
|
"
|
||||||
SRCREV = "3ee12c6d569977cf1cd30d0da77807a07aa77158"
|
SRCREV = "3ee12c6d569977cf1cd30d0da77807a07aa77158"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user