Skip to contentSkip to conversation

patch for compilation on OS X

Qemu-devel Joshua Root 1 participant 1 message Nov 14, 2004

lore
Share & tools
lore
#0 lore raw

Below is a trivial patch which allows the current qemu CVS (i386-softmmu at least) to compile on Mac OS X. I don't think it will break other platforms, but I have no way of testing that hypothesis.

Cheers,
Josh

Index: exec.c
===================================================================
RCS file: /cvsroot/qemu/qemu/exec.c,v
retrieving revision 1.51

exec.c 14 Nov 2004 02:27:40 -0000 renamed from exec.c 10 Oct 2004 15:14:19 -0000 1.51 +1 -0
diff -u -d -b -w -r1.51 exec.c
@@ -21,6 +21,7 @@
 #ifdef _WIN32
 #include <windows.h>
 #else
+#include <sys/types.h>
 #include <sys/mman.h>
 #endif
 #include <stdlib.h>