From 509fc7c03126b8bf305a747cf3ca70397c9c2e3a Mon Sep 17 00:00:00 2001 From: Hilko Bengen Date: Thu, 5 Sep 2024 10:10:53 +0200 Subject: [PATCH] filemap: define PROC_SUPER_MAGIC, avoid linux/magic.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #1848 caused build issues with some "unusual" build configurations – apparently we can't rely on linux/magic.h being present when cross-building for musl libc. Defining PROC_SUPER_MAGIC should not cause a problems since it should be considered part of the Linux kernel/user API and it is unlikely to change. --- libyara/filemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libyara/filemap.c b/libyara/filemap.c index f8d0672098..0b88640d6b 100644 --- a/libyara/filemap.c +++ b/libyara/filemap.c @@ -159,7 +159,7 @@ YR_API int yr_filemap_map_fd( #ifdef __linux__ #include -#include +#define PROC_SUPER_MAGIC 0x9fa0 #endif #define MAP_EXTRA_FLAGS 0