aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-12-22 11:47:04 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-12-22 11:59:46 +0100
commit3645389673af4c62a636cfe36f258ae770e8fb6b (patch)
tree356f9337e5ca323babef0e43fc345b0017dda798 /executor/common_linux.h
parent6f298a18e582be006780954d6b0c30cbe2f568f4 (diff)
pkg/csource: fix handling of proc types
Generated program always uses pid=0 even when there are multiple processes. Make each process use own pid. Unfortunately required to do quite significant changes to prog, because the current format only supported fixed pid. Fixes #490
Diffstat (limited to 'executor/common_linux.h')
-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 6c43907b2..90a873582 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -7,6 +7,7 @@
#define _GNU_SOURCE
#endif
+#include <endian.h>
#include <sys/syscall.h>
#include <unistd.h>
#if defined(SYZ_EXECUTOR) || defined(SYZ_THREADED) || defined(SYZ_COLLIDE)