From 960f52b78357dad25e36f624dfbff91e4c6b4bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 17 Dec 2020 16:53:59 +0100 Subject: [PATCH] SELinuxMeter: hardcode SELINUX_MAGIC value Avoid include, not found by musl-gcc. The value of SELINUX_MAGIC should really never change. --- linux/SELinuxMeter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linux/SELinuxMeter.c b/linux/SELinuxMeter.c index 892f1e82..c9fa1468 100644 --- a/linux/SELinuxMeter.c +++ b/linux/SELinuxMeter.c @@ -12,7 +12,6 @@ in the source distribution for its full text. #include #include #include -#include #include #include @@ -35,7 +34,7 @@ static bool hasSELinuxMount(void) { return false; } - if ((uint32_t)sfbuf.f_type != (uint32_t)SELINUX_MAGIC) { + if ((uint32_t)sfbuf.f_type != /* SELINUX_MAGIC */ 0xf97cff8cU) { return false; }