Skip to content

Commit 796bd20

Browse files
committed
mctp-bench: remove prctl includes
Khem reports that including both linux/prctl.h and sys/prctl.h appears to break builds with musl: In file included from ../sources/mctp-2.3/src/mctp-bench.c:16: ../recipe-sysroot/usr/include/sys/prctl.h:88:8: error: redefinition of 'prctl_mm_map' 88 | struct prctl_mm_map { | ^ ../recipe-sysroot/usr/include/linux/prctl.h:134:8: note: previous definition is here 134 | struct prctl_mm_map { | ^ We're not using prctl() at present, so both can be removed. Reported-by: Khem Raj <[email protected]> Signed-off-by: Jeremy Kerr <[email protected]>
1 parent 688d615 commit 796bd20

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
1. Fixed `mctp-bench` compile on musl libc
12+
913
## [2.3] - 2025-10-22
1014

1115
### Fixed

src/mctp-bench.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#include <sys/socket.h>
1313
#include <time.h>
1414
#include <unistd.h>
15-
#include <linux/prctl.h>
16-
#include <sys/prctl.h>
1715
#include <assert.h>
1816
#include <sys/random.h>
1917

0 commit comments

Comments
 (0)