aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_bsd.h
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2018-12-26 11:45:26 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-12-27 11:06:03 +0100
commit43cf01dd41b16b2aa2840291391031cf0b56b950 (patch)
tree2700edff70ad14e76c470891ca4694f1724f1500 /executor/executor_bsd.h
parent8e3d1cba5a65fa18428385ee1549b9fd3c46892d (diff)
executor: include sys/kcov.h on OpenBSD
Since we no longer cross-compile, there's no need to repeat the defines.
Diffstat (limited to 'executor/executor_bsd.h')
-rw-r--r--executor/executor_bsd.h9
1 files changed, 6 insertions, 3 deletions
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 <sys/kcov.h>
#endif