mirror of
https://github.com/reactos/syzkaller.git
synced 2025-01-31 17:12:52 +00:00
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.
This commit is contained in:
parent
3f955eba7f
commit
031174c310
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user