projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91aa5d4
)
win32 + Mac OS X compile fix
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 21 Feb 2005 20:10:36 +0000
(20:10 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 21 Feb 2005 20:10:36 +0000
(20:10 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1304
c046a42c
-6fe2-441c-8c8c-
71466251a162
osdep.c
patch
|
blob
|
history
diff --git
a/osdep.c
b/osdep.c
index bb2c0d1f0d57fc2349143042e96defa79c3f27fb..ba6d5f38a14fffd219d60e1c026ca4f31b134834 100644
(file)
--- 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)
{