mctp: Fix build with latest musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-02-17 21:35:24 -08:00
parent f5b0a13f01
commit 29897344f7
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,38 @@
From 166b2251a156a03a80318533440178ac0b913945 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@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.khem@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>

View File

@ -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"