gentoo-ebuilds/sys-apps/intel-sa-00075-tools/files/intel-sa-00075-tools-wordsize.patch
Arthur Zamarin 99edaffa00
sys-apps/intel-sa-00075-tools: fix build on musl
::musl had another patch, which just drops the include for
<bits/wordsize.h>, but this caused failure on glibc. Better
solution is to replace it with <limits.h> which exposes publicly
the needed macros (internally imports <bits/wordsize.h>) and on
musl also works.

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-10-05 23:18:01 +03:00

11 lines
243 B
Diff

--- a/INTEL-SA-00075.h
+++ b/INTEL-SA-00075.h
@@ -72,7 +72,7 @@
#include <errno.h>
#include <stdint.h>
#include <stdbool.h>
-#include <bits/wordsize.h>
+#include <limits.h>
#include <linux/mei.h>
#define DEFAULT_MEI_DEV_NODE "/dev/mei0"