aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/generated.go
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 /pkg/csource/generated.go
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 'pkg/csource/generated.go')
-rw-r--r--pkg/csource/generated.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go
index bceb2dba4..e3a6e0568 100644
--- a/pkg/csource/generated.go
+++ b/pkg/csource/generated.go
@@ -11767,6 +11767,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>