From 43cf01dd41b16b2aa2840291391031cf0b56b950 Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Wed, 26 Dec 2018 11:45:26 +0100 Subject: executor: include sys/kcov.h on OpenBSD Since we no longer cross-compile, there's no need to repeat the defines. --- executor/executor_bsd.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'executor/executor_bsd.h') diff --git a/executor/executor_bsd.h b/executor/executor_bsd.h index b6cf9a3ea..9795dd198 100644 --- a/executor/executor_bsd.h +++ b/executor/executor_bsd.h @@ -37,6 +37,11 @@ static long execute_syscall(const call_t* c, long a[kMaxArgs]) #if GOOS_freebsd +// TODO(mptre): once kcov is merged to FreeBSD[1], just include sys/kcov.h for +// both FreeBSD and OpenBSD. +// +// [1] https://reviews.freebsd.org/D14599 + #define KIOENABLE _IOW('c', 2, int) // Enable coverage recording #define KIODISABLE _IO('c', 3) // Disable coverage recording #define KIOSETBUFSIZE _IOW('c', 4, unsigned int) // Set the buffer size @@ -47,9 +52,7 @@ static long execute_syscall(const call_t* c, long a[kMaxArgs]) #elif GOOS_openbsd -#define KIOSETBUFSIZE _IOW('K', 1, unsigned long) -#define KIOENABLE _IO('K', 2) -#define KIODISABLE _IO('K', 3) +#include #endif -- cgit mrf-deployment