aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/generated.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2022-01-12 16:43:21 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-01-13 17:03:14 +0100
commit40c93acdacf984554ac152f1b7f06ba400fde8b0 (patch)
tree64bed09c8614a0b9b22f47a65b9b6aa8cde067f8 /pkg/csource/generated.go
parenta1cd6a69c49732b1b24bad2fab34857aaa399a60 (diff)
executor: move SYSCALL_DEFINES above common_*.h includes
Otherwise the pseudo syscalls there won't be able to access those definitions.
Diffstat (limited to 'pkg/csource/generated.go')
-rw-r--r--pkg/csource/generated.go5
1 files changed, 4 insertions, 1 deletions
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 <errno.h>
#endif
+#if !SYZ_EXECUTOR
+/*{{{SYSCALL_DEFINES}}}*/
+#endif
+
#if SYZ_EXECUTOR && !GOOS_linux
#if !GOOS_windows
#include <unistd.h>
@@ -10643,7 +10647,6 @@ static void loop(void)
#endif
#if !SYZ_EXECUTOR
-/*{{{SYSCALL_DEFINES}}}*/
/*{{{RESULTS}}}*/