Commit 194884dd6f1fee4d4c41f74649e98af04ad6f83a

Authored by bellard
1 parent 91aa5d49

win32 + Mac OS X compile fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1304 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 8 additions and 0 deletions
@@ -273,7 +273,15 @@ void *get_mmap_addr(unsigned long size) @@ -273,7 +273,15 @@ void *get_mmap_addr(unsigned long size)
273 273
274 #else 274 #else
275 275
  276 +#ifdef _BSD
  277 +#include <stdlib.h>
  278 +#else
276 #include <malloc.h> 279 #include <malloc.h>
  280 +#endif
  281 +#ifdef _WIN32
  282 +/* XXX: find a solution to have page aligned data */
  283 +#define memalign(align, size) malloc(size)
  284 +#endif
277 285
278 int qemu_write(int fd, const void *buf, size_t n) 286 int qemu_write(int fd, const void *buf, size_t n)
279 { 287 {