From: Lee Chee Yang <[email protected]> Signed-off-by: Lee Chee Yang <[email protected]> --- ...Include-poll.h-instead-of-sys-poll.h.patch | 29 +++++++++++++++++++ recipes-bsp/metee/metee_3.1.6.bb | 4 ++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 recipes-bsp/metee/files/0001-Include-poll.h-instead-of-sys-poll.h.patch
diff --git a/recipes-bsp/metee/files/0001-Include-poll.h-instead-of-sys-poll.h.patch b/recipes-bsp/metee/files/0001-Include-poll.h-instead-of-sys-poll.h.patch new file mode 100644 index 00000000..cc898e75 --- /dev/null +++ b/recipes-bsp/metee/files/0001-Include-poll.h-instead-of-sys-poll.h.patch @@ -0,0 +1,29 @@ +From a98ff2597628d7225c1871719db2411a1e4b7c0a Mon Sep 17 00:00:00 2001 +From: cheeyanglee <[email protected]> +Date: Wed, 1 Nov 2023 09:59:32 +0800 +Subject: [PATCH] metee_linux.c: Include poll.h instead of sys/poll.h + +fix compilation error with musl C library: + + error: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> + +Upstream-Status: Submitted [ https://github.com/intel/metee/pull/6 ] + +Signed-off-by: Lee Chee Yang <[email protected]> +--- + src/linux/metee_linux.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/linux/metee_linux.c b/src/linux/metee_linux.c +index 463fe6c..8507ea4 100644 +--- a/src/linux/metee_linux.c ++++ b/src/linux/metee_linux.c +@@ -12,7 +12,7 @@ + #include <stdlib.h> + #include <string.h> + #include <sys/ioctl.h> +-#include <sys/poll.h> ++#include <poll.h> + #include <unistd.h> + + #include "metee.h" diff --git a/recipes-bsp/metee/metee_3.1.6.bb b/recipes-bsp/metee/metee_3.1.6.bb index 1ac55bd6..9a4e267c 100644 --- a/recipes-bsp/metee/metee_3.1.6.bb +++ b/recipes-bsp/metee/metee_3.1.6.bb @@ -10,7 +10,9 @@ COMPATIBLE_HOST = '(i.86|x86_64).*-linux' inherit cmake -SRC_URI = "git://github.com/intel/metee.git;branch=master;protocol=https" +SRC_URI = "git://github.com/intel/metee.git;branch=master;protocol=https \ + file://0001-Include-poll.h-instead-of-sys-poll.h.patch \ +" SRCREV = "0173c7b6eef327f398c16e51e5ab770390b91472" S = "${WORKDIR}/git" -- 2.37.3
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#8147): https://lists.yoctoproject.org/g/meta-intel/message/8147 Mute This Topic: https://lists.yoctoproject.org/mt/102314100/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
