This patchset enables kvmtool to build on musl-libc. I have also tested that it still builds on glibc. Signed-off-by: J. Neuschäfer <j.neuschaefer@xxxxxxx> --- Changes in v2: - Be explicit about GNU vs. POSIX versions of basename - Link to v1: https://lore.kernel.org/r/20240727-musl-v1-0-35013d2f97a0@xxxxxxx --- J. Neuschäfer (2): Switch to POSIX version of basename() Get __WORDSIZE from <sys/reg.h> for musl compat include/linux/bitops.h | 2 +- vfio/core.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) --- base-commit: ca31abf5d9c3453c852b263ccb451751b29b944b change-id: 20240727-musl-853c66deb931 Best regards, -- J. Neuschäfer <j.neuschaefer@xxxxxxx>