mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
82cb6b041c
commit
0360ccffbe
2 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue