diff options
author | Brad <brad@comstyle.com> | 2010-12-20 21:25:40 -0500 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-12-21 19:44:54 +0000 |
commit | cbb608a5c8ff918188545edb28127f63db76bd1e (patch) | |
tree | f44b05ebf414ba551301f1294c82563f6c557dff | |
parent | 7ae63a517fb50fe32b8ce88bfc18a1a1ed056189 (diff) | |
download | qemu-cbb608a5c8ff918188545edb28127f63db76bd1e.zip qemu-cbb608a5c8ff918188545edb28127f63db76bd1e.tar.gz qemu-cbb608a5c8ff918188545edb28127f63db76bd1e.tar.bz2 |
Use mmap() within code_gen_alloc() for OpenBSD.
Signed-off-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |