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:
bellard 2005-02-21 20:10:36 +00:00
parent 91aa5d4975
commit 194884dd6f

View File

@ -273,7 +273,15 @@ void *get_mmap_addr(unsigned long size)
#else #else
#ifdef _BSD
#include <stdlib.h>
#else
#include <malloc.h> #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) int qemu_write(int fd, const void *buf, size_t n)
{ {