mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
bsd-user: fix build
Link in oslib objects also for BSD user, but avoid using the version of qemu_vmalloc() defined in oslib-posix.c. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
9cc85c281b
commit
71ea2e0161
2 changed files with 4 additions and 1 deletions
|
@ -105,6 +105,8 @@ 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)
|
||||
{
|
||||
|
@ -127,6 +129,7 @@ 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