aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_bsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor_bsd.h')
-rw-r--r--executor/executor_bsd.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/executor/executor_bsd.h b/executor/executor_bsd.h
index 8ef8186f8..2750fe3b7 100644
--- a/executor/executor_bsd.h
+++ b/executor/executor_bsd.h
@@ -4,6 +4,7 @@
#include <fcntl.h>
#include <stdlib.h>
#include <sys/ioctl.h>
+#include <sys/kcov.h>
#include <sys/mman.h>
#include <sys/resource.h>
#include <sys/stat.h>
@@ -48,13 +49,6 @@ static intptr_t execute_syscall(const call_t* c, intptr_t a[kMaxArgs])
return __syscall(c->sys_nr, a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]);
}
-#if GOOS_freebsd || GOOS_openbsd || GOOS_netbsd
-
-// KCOV support was added to FreeBSD in https://svnweb.freebsd.org/changeset/base/342962
-// KCOV support added to NetBSD in https://github.com/NetBSD/src/commit/080a26f01d79ded8a2154c128950d1d663c6ca88
-
-#include <sys/kcov.h>
-
static void cover_open(cover_t* cov, bool extra)
{
int fd = open("/dev/kcov", O_RDWR);
@@ -172,9 +166,6 @@ static bool use_cover_edges(uint64 pc)
{
return true;
}
-#else
-#include "nocover.h"
-#endif
#if GOOS_netbsd
#define SYZ_HAVE_FEATURES 1