From 40c93acdacf984554ac152f1b7f06ba400fde8b0 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 12 Jan 2022 16:43:21 +0000 Subject: executor: move SYSCALL_DEFINES above common_*.h includes Otherwise the pseudo syscalls there won't be able to access those definitions. --- pkg/csource/generated.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg/csource/generated.go') diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index 7c30d01e6..97d7aa3d3 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -37,6 +37,10 @@ typedef signed int ssize_t; #include #endif +#if !SYZ_EXECUTOR +/*{{{SYSCALL_DEFINES}}}*/ +#endif + #if SYZ_EXECUTOR && !GOOS_linux #if !GOOS_windows #include @@ -10643,7 +10647,6 @@ static void loop(void) #endif #if !SYZ_EXECUTOR -/*{{{SYSCALL_DEFINES}}}*/ /*{{{RESULTS}}}*/ -- cgit mrf-deployment