summaryrefslogtreecommitdiff
path: root/osdep.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-02-21 20:10:36 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-02-21 20:10:36 +0000
commit194884dd6f1fee4d4c41f74649e98af04ad6f83a (patch)
treeef6e23683a3251352bd4ebe489987eb8e4cf90f1 /osdep.c
parent91aa5d4975eeb996a2d4263e94479f85df124660 (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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/osdep.c b/osdep.c
index bb2c0d1f0d..ba6d5f38a1 100644
--- a/osdep.c
+++ b/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)
{