Signed-off-by: Khem Raj <raj.k...@gmail.com> --- .../mctp/0001-mctp-bench-Adjust-headers.patch | 38 +++++++++++++++++++ .../recipes-support/mctp/mctp_2.1.bb | 3 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 meta-networking/recipes-support/mctp/mctp/0001-mctp-bench-Adjust-headers.patch
diff --git a/meta-networking/recipes-support/mctp/mctp/0001-mctp-bench-Adjust-headers.patch b/meta-networking/recipes-support/mctp/mctp/0001-mctp-bench-Adjust-headers.patch new file mode 100644 index 0000000000..4ff9b09299 --- /dev/null +++ b/meta-networking/recipes-support/mctp/mctp/0001-mctp-bench-Adjust-headers.patch @@ -0,0 +1,38 @@ +From 166b2251a156a03a80318533440178ac0b913945 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.k...@gmail.com> +Date: Mon, 17 Feb 2025 21:29:41 -0800 +Subject: [PATCH] mctp-bench: Adjust headers + +bits/time.h is not be included directly, instead use time.h +since poll.h is included there is no need to include sys/poll.h + +Fixes +../git/src/mctp-bench.c:2:10: fatal error: 'bits/time.h' file not found + 2 | #include <bits/time.h> + | ^~~~~~~~~~~~~ + +Upstream-Status: Submitted [https://github.com/CodeConstruct/mctp/pull/65] +Signed-off-by: Khem Raj <raj.k...@gmail.com> +--- + src/mctp-bench.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/src/mctp-bench.c b/src/mctp-bench.c +index eeb6fcf..60b3bb0 100644 +--- a/src/mctp-bench.c ++++ b/src/mctp-bench.c +@@ -1,5 +1,5 @@ + #define _XOPEN_SOURCE 700 +-#include <bits/time.h> ++#include <time.h> + #include <err.h> + #include <errno.h> + #include <poll.h> +@@ -9,7 +9,6 @@ + #include <stdlib.h> + #include <string.h> + #include <sys/ioctl.h> +-#include <sys/poll.h> + #include <sys/socket.h> + #include <time.h> + #include <unistd.h> diff --git a/meta-networking/recipes-support/mctp/mctp_2.1.bb b/meta-networking/recipes-support/mctp/mctp_2.1.bb index 5bd7039529..c76fc09af3 100644 --- a/meta-networking/recipes-support/mctp/mctp_2.1.bb +++ b/meta-networking/recipes-support/mctp/mctp_2.1.bb @@ -7,7 +7,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21" SRCREV = "dd944cf5b5a8b834f3685bcb2017190258dbcd0b" -SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https" +SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https \ + file://0001-mctp-bench-Adjust-headers.patch" S = "${WORKDIR}/git"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#115519): https://lists.openembedded.org/g/openembedded-devel/message/115519 Mute This Topic: https://lists.openembedded.org/mt/111246490/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-