aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/common_bsd.h (renamed from executor/common_freebsd.h)0
-rw-r--r--executor/executor_bsd.cc10
2 files changed, 9 insertions, 1 deletions
diff --git a/executor/common_freebsd.h b/executor/common_bsd.h
index a9c4933db..a9c4933db 100644
--- a/executor/common_freebsd.h
+++ b/executor/common_bsd.h
diff --git a/executor/executor_bsd.cc b/executor/executor_bsd.cc
index 07bdb0b26..d920c82f5 100644
--- a/executor/executor_bsd.cc
+++ b/executor/executor_bsd.cc
@@ -4,13 +4,21 @@
// +build
#define SYZ_EXECUTOR
-#include "common_freebsd.h"
+#include "common_bsd.h"
#include "executor_posix.h"
#include "executor.h"
+// This file is used by both freebsd and netbsd (as a link to executor_bsd.cc).
+#if defined(__FreeBSD__)
#include "syscalls_freebsd.h"
+#elif defined(__NetBSD__)
+#include "syscalls_netbsd.h"
+#else
+// This is just so that "make executor TARGETOS=freebsd" works on linux.
+#include "syscalls_freebsd.h"
+#endif
#include <signal.h>
#include <sys/mman.h>