From 031174c3103a625f16e192ffa82572c92e05bbf4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 25 Oct 2017 09:45:05 +0200 Subject: executor: fix netbsd syscalls executor_netbsd.cc was including syscalls_freebsd.h, which completely messed up syscall numbers and names. Include the right syscalls header. --- executor/executor_bsd.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'executor/executor_bsd.cc') 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 #include -- cgit mrf-deployment