Signed-off-by: Khem Raj <[email protected]> --- ...uxsock.c-Include-string.h-for-memcpy.patch | 28 +++++++++++++++++++ .../multipath-tools/multipath-tools_0.11.0.bb | 1 + 2 files changed, 29 insertions(+) create mode 100644 meta-oe/recipes-support/multipath-tools/files/0001-libmpathutils-uxsock.c-Include-string.h-for-memcpy.patch
diff --git a/meta-oe/recipes-support/multipath-tools/files/0001-libmpathutils-uxsock.c-Include-string.h-for-memcpy.patch b/meta-oe/recipes-support/multipath-tools/files/0001-libmpathutils-uxsock.c-Include-string.h-for-memcpy.patch new file mode 100644 index 0000000000..128a0c4d8d --- /dev/null +++ b/meta-oe/recipes-support/multipath-tools/files/0001-libmpathutils-uxsock.c-Include-string.h-for-memcpy.patch @@ -0,0 +1,28 @@ +From 1d444772db14f4acb8d47b874462b0cc171ab672 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 17 Feb 2025 12:01:59 -0800 +Subject: [PATCH] libmpathutils/uxsock.c: Include string.h for memcpy + +Fixes +uxsock.c:72:2: error: call to undeclared library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + +Upstream-Status: Submitted [https://lore.kernel.org/dm-devel/[email protected]/T/#u] +Signed-off-by: Khem Raj <[email protected]> +Cc: Benjamin Marzinski <[email protected]> +Cc: Martin Wilck <[email protected]> +--- + libmpathutil/uxsock.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libmpathutil/uxsock.c b/libmpathutil/uxsock.c +index 2135476d..a474874e 100644 +--- a/libmpathutil/uxsock.c ++++ b/libmpathutil/uxsock.c +@@ -8,6 +8,7 @@ + #include <stdlib.h> + #include <unistd.h> + #include <stdarg.h> ++#include <string.h> + #include <fcntl.h> + #include <sys/ioctl.h> + #include <sys/types.h> diff --git a/meta-oe/recipes-support/multipath-tools/multipath-tools_0.11.0.bb b/meta-oe/recipes-support/multipath-tools/multipath-tools_0.11.0.bb index 9f95361063..67e293dac2 100644 --- a/meta-oe/recipes-support/multipath-tools/multipath-tools_0.11.0.bb +++ b/meta-oe/recipes-support/multipath-tools/multipath-tools_0.11.0.bb @@ -44,6 +44,7 @@ SRC_URI = "git://github.com/opensvc/multipath-tools.git;protocol=https;branch=ma file://0010-Always-use-devmapper.patch \ file://0011-fix-bug-of-do_compile-and-do_install.patch \ file://0012-add-explicit-dependency-on-libraries.patch \ + file://0001-libmpathutils-uxsock.c-Include-string.h-for-memcpy.patch \ " LIC_FILES_CHKSUM = "file://COPYING;md5=9ec28527f3d544b51ceb0e1907d0bf3f"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#115517): https://lists.openembedded.org/g/openembedded-devel/message/115517 Mute This Topic: https://lists.openembedded.org/mt/111246488/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
