Hi,

This patch fix block.c build on Mac OS X/Darwin.

Pierre.

Index: block.c
===================================================================
RCS file: /sources/qemu/qemu/block.c,v
retrieving revision 1.40
diff -u -r1.40 block.c
--- block.c     7 Jan 2007 18:22:37 -0000       1.40
+++ block.c     18 Jan 2007 12:29:58 -0000
@@ -35,6 +35,10 @@
 #define SECTOR_BITS 9
 #define SECTOR_SIZE (1 << SECTOR_BITS)
 
+#ifndef        ENOMEDIUM
+#define        ENOMEDIUM ENODEV
+#endif
+
 typedef struct BlockDriverAIOCBSync {
     BlockDriverAIOCB common;
     QEMUBH *bh;
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to