aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-06-19 18:33:36 -0700
committerAleksandr Nogikh <wp32pw@gmail.com>2023-06-20 19:10:08 +0200
commit79782afcff30fd0c0af8c2725d508b2c7150f3ed (patch)
tree35b2ac2ca432521fdf9699db4b9d8af6286d517d /executor
parent0cf1feea4ed6ec2e962a5116275c5de83e09b728 (diff)
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); ^
Diffstat (limited to 'executor')
-rw-r--r--executor/common_linux.h1
1 files changed, 1 insertions, 0 deletions
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 <fcntl.h>
+#include <linux/falloc.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>