diff options
author | Tobias Nygren <tnn@netbsd.org> | 2011-08-07 09:57:05 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-08-07 09:57:05 +0000 |
commit | 9f4b09a4cd2f65f972b0b334658aaab8760bff73 (patch) | |
tree | d0d20a0685a5ed93f91970f4229db58e929738ca | |
parent | 45c245bf808a48cb7c6c99aaa43d8fb9054fc84e (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>
-rw-r--r-- | exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |