aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_bsd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor_bsd.cc')
-rw-r--r--executor/executor_bsd.cc10
1 files changed, 9 insertions, 1 deletions
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>