提交 194884dd 编写于 作者: B bellard

win32 + Mac OS X compile fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1304 c046a42c-6fe2-441c-8c8c-71466251a162
上级 91aa5d49
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册