Skip to content

Commit

Permalink
Use mmap() within code_gen_alloc() for OpenBSD.
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  • Loading branch information
brad0 authored and blueswirl committed Dec 21, 2010
1 parent 7ae63a5 commit cbb608a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,8 @@ static void code_gen_alloc(unsigned long tb_size)
exit(1);
}
}
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
|| defined(__DragonFly__) || defined(__OpenBSD__)
{
int flags;
void *addr = NULL;
Expand Down

0 comments on commit cbb608a

Please sign in to comment.