mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
win32 + Mac OS X compile fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1304 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
91aa5d4975
commit
194884dd6f
8
osdep.c
8
osdep.c
@ -273,7 +273,15 @@ void *get_mmap_addr(unsigned long size)
|
||||
|
||||
#else
|
||||
|
||||
#ifdef _BSD
|
||||
#include <stdlib.h>
|
||||
#else
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#ifdef _WIN32
|
||||
/* XXX: find a solution to have page aligned data */
|
||||
#define memalign(align, size) malloc(size)
|
||||
#endif
|
||||
|
||||
int qemu_write(int fd, const void *buf, size_t n)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user