aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_bsd.h
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2019-01-21 11:23:19 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-01-21 11:23:19 +0100
commitbadbbeee6945ebd6ec1d1a897aad860b2decefe9 (patch)
treea6b0a8b91d084bb9b8ab3ecbd84602218a17dbcc /executor/executor_bsd.h
parentfd37a550bbc804dfa7141052976b2057a04d274a (diff)
pkg/host: enable FeatureComparisons on OpenBSD
Diffstat (limited to 'executor/executor_bsd.h')
-rw-r--r--executor/executor_bsd.h14
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);