aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_bsd.h
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2025-02-24 22:07:25 +0000
committerAleksandr Nogikh <nogikh@google.com>2025-02-26 15:09:39 +0000
commit6a8fcbc4a6172c831c89c507007f59fba13408aa (patch)
tree191db2484e48818a04c85d7dd129c4dd5b74655e /executor/common_bsd.h
parent95b975e5e85f53f742d82ed39cb09e6a8266cfa7 (diff)
executor: pull in errno.h on BSD systems
The error handling for the setsid() call in sandbox_common() requires it. Without it, some csource builds fail.
Diffstat (limited to 'executor/common_bsd.h')
-rw-r--r--executor/common_bsd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/executor/common_bsd.h b/executor/common_bsd.h
index 7d387be16..1e0389af5 100644
--- a/executor/common_bsd.h
+++ b/executor/common_bsd.h
@@ -387,6 +387,7 @@ static long syz_extract_tcp_res(volatile long a0, volatile long a1, volatile lon
#if SYZ_EXECUTOR || SYZ_SANDBOX_SETUID || SYZ_SANDBOX_NONE
+#include <errno.h>
#include <sys/resource.h>
#include <unistd.h>