diff --git a/libyara/filemap.c b/libyara/filemap.c index f8d0672098..5327b154c0 100644 --- a/libyara/filemap.c +++ b/libyara/filemap.c @@ -159,7 +159,12 @@ YR_API int yr_filemap_map_fd( #ifdef __linux__ #include -#include +// This constant can be found in linux/magic.h and the statfs(2) manpage. +// +// We don't want to include linux/magic.h here because it may not be +// available in cross-build environments, see +// https://github.com/Hugal31/yara-rust/issues/115 +#define PROC_SUPER_MAGIC 0x9fa0 #endif #define MAP_EXTRA_FLAGS 0