diff options
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/executor_bsd.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/executor/executor_bsd.h b/executor/executor_bsd.h index 3af57fa5b..15ac8aad2 100644 --- a/executor/executor_bsd.h +++ b/executor/executor_bsd.h @@ -38,22 +38,12 @@ static long execute_syscall(const call_t* c, long 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 - -// KCOV support was added in https://svnweb.freebsd.org/changeset/base/342962 -#include <sys/kcov.h> - -#elif GOOS_openbsd +#if GOOS_freebsd || GOOS_openbsd -// TODO(mptre): temporary defined until trace-cmp is fully supported -#define KCOV_MODE_TRACE_CMP 2 +// KCOV support was added to FreeBSD in https://svnweb.freebsd.org/changeset/base/342962 #include <sys/kcov.h> -#endif - -#if GOOS_freebsd || GOOS_openbsd - static void cover_open(cover_t* cov, bool extra) { int fd = open("/dev/kcov", O_RDWR); |
