lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250630204430.10968-1-listout@listout.xyz>
Date: Tue,  1 Jul 2025 02:14:30 +0530
From: Brahmajit Das <listout@...tout.xyz>
To: linux-kernel@...r.kernel.org
Cc: alexander.usyskin@...el.com,
	tomas.winkler@...el.com,
	gregkh@...uxfoundation.org
Subject: [RFC PATCH] samples: mei: Fix building on musl libc

The header bits/wordsize.h is glibc specific and on building on musl
with allyesconfig results in

samples/mei/mei-amt-version.c:77:10: fatal error: bits/wordsize.h: No such file or directory
   77 | #include <bits/wordsize.h>
      |          ^~~~~~~~~~~~~~~~~

mei-amt-version.c build file without bits/wordsize.h on musl. I'm not
sure we can remove the header completely or how it's used under glibc.

Signed-off-by: Brahmajit Das <listout@...tout.xyz>
---
 samples/mei/mei-amt-version.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/samples/mei/mei-amt-version.c b/samples/mei/mei-amt-version.c
index 867debd3b912..c6850f7b883a 100644
--- a/samples/mei/mei-amt-version.c
+++ b/samples/mei/mei-amt-version.c
@@ -73,7 +73,9 @@
 #include <errno.h>
 #include <stdint.h>
 #include <stdbool.h>
+#if defined(__GLIBC__)
 #include <bits/wordsize.h>
+#endif
 #include <linux/mei.h>
 
 /*****************************************************************************
-- 
2.50.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ