From 79782afcff30fd0c0af8c2725d508b2c7150f3ed Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 19 Jun 2023 18:33:36 -0700 Subject: executor: include missing linux/falloc.h Its needed for FALLOC_FL_ZERO_RANGE which needs this header, it works with glibc because fcntl.h includes this header indirectly, however the failure comes to fore with musl C library where this header is not included indirectly by other system headers, therefore include it as required. Fixes In file included from executor/common.h:505: executor/common_linux.h:5604:16: error: use of undeclared identifier 'FALLOC_FL_ZERO_RANGE' fallocate(fd, FALLOC_FL_ZERO_RANGE, 0, SWAP_FILE_SIZE); ^ --- executor/common_linux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'executor') diff --git a/executor/common_linux.h b/executor/common_linux.h index d5152e058..ff27913d9 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -5580,6 +5580,7 @@ static long syz_pkey_set(volatile long pkey, volatile long val) #if SYZ_EXECUTOR || SYZ_SWAP #include +#include #include #include #include -- cgit mrf-deployment