diff options
| author | R3x <siddharth.muralee@gmail.com> | 2019-06-12 04:27:58 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-06-13 18:26:11 +0200 |
| commit | d25bb7ad41f9d44dc58107b2d5e264cae1169611 (patch) | |
| tree | 1c3afa757660e6147e586de49e2479afa82749d6 /executor | |
| parent | 3f4e812b87c43b6cdc98b4d66673f6575d63d4fb (diff) | |
pkg/report: use cover protect on NetBSD also
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/executor_bsd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/executor_bsd.h b/executor/executor_bsd.h index 9acd12bb9..39a4d732e 100644 --- a/executor/executor_bsd.h +++ b/executor/executor_bsd.h @@ -86,7 +86,7 @@ static void cover_open(cover_t* cov, bool extra) static void cover_protect(cover_t* cov) { -#if GOOS_freebsd +#if GOOS_freebsd || GOOS_netbsd size_t mmap_alloc_size = kCoverSize * KCOV_ENTRY_SIZE; long page_size = sysconf(_SC_PAGESIZE); if (page_size > 0) @@ -107,7 +107,7 @@ static void cover_protect(cover_t* cov) static void cover_unprotect(cover_t* cov) { -#if GOOS_freebsd +#if GOOS_freebsd || GOOS_netbsd size_t mmap_alloc_size = kCoverSize * KCOV_ENTRY_SIZE; mprotect(cov->data, mmap_alloc_size, PROT_READ | PROT_WRITE); #elif GOOS_openbsd |
