diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2013-01-19 09:49:09 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2013-01-26 13:18:27 +0000 |
commit | 0360ccffbe41bd732b42a90cd04de63335933bea (patch) | |
tree | 935ae23c73253fd16cf324bdc80b18269736bb58 /util/oslib-posix.c | |
parent | 82cb6b041c307bd96c067147af69cd98be91a682 (diff) | |
download | qemu-0360ccffbe41bd732b42a90cd04de63335933bea.zip qemu-0360ccffbe41bd732b42a90cd04de63335933bea.tar.gz qemu-0360ccffbe41bd732b42a90cd04de63335933bea.tar.bz2 |
bsd-user: avoid conflict with qemu_vmalloc
Rename qemu_vmalloc() to bsd_vmalloc(), adjust the only user.
Remove #ifdeffery in oslib-posix.c.
Tested-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'util/oslib-posix.c')
-rw-r--r-- | util/oslib-posix.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 4f5ec67..b4152fb 100644 --- a/util/oslib-posix.c +++ b/util/oslib-posix.c @@ -105,8 +105,6 @@ void *qemu_memalign(size_t alignment, size_t size) return ptr; } -/* conflicts with qemu_vmalloc in bsd-user/mmap.c */ -#if !defined(CONFIG_BSD_USER) /* alloc shared memory pages */ void *qemu_vmalloc(size_t size) { @@ -129,7 +127,6 @@ void *qemu_vmalloc(size_t size) trace_qemu_vmalloc(size, ptr); return ptr; } -#endif void qemu_vfree(void *ptr) { |