aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorTobias Nygren <tnn@netbsd.org>2011-08-07 09:57:05 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-08-07 09:57:05 +0000
commit9f4b09a4cd2f65f972b0b334658aaab8760bff73 (patch)
treed0d20a0685a5ed93f91970f4229db58e929738ca /exec.c
parent45c245bf808a48cb7c6c99aaa43d8fb9054fc84e (diff)
Use mmap to allocate execute memory
Use mmap to allocate executable memory on NetBSD as well. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index 5bc920313a..719fff9a91 100644
--- a/exec.c
+++ b/exec.c
@@ -526,7 +526,8 @@ static void code_gen_alloc(unsigned long tb_size)
}
}
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
- || defined(__DragonFly__) || defined(__OpenBSD__)
+ || defined(__DragonFly__) || defined(__OpenBSD__) \
+ || defined(__NetBSD__)
{
int flags;
void *addr = NULL;