diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-02-21 20:10:36 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-02-21 20:10:36 +0000 |
commit | 194884dd6f1fee4d4c41f74649e98af04ad6f83a (patch) | |
tree | ef6e23683a3251352bd4ebe489987eb8e4cf90f1 /osdep.c | |
parent | 91aa5d4975eeb996a2d4263e94479f85df124660 (diff) |
win32 + Mac OS X compile fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1304 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'osdep.c')
-rw-r--r-- | osdep.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) { |