summaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-18 22:43:16 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-18 22:43:16 +0000
commit7f1c9da99804235212888abda7ba7f06ee3afc70 (patch)
treef28827874e1b44c5b841d22fa8986a0b02832845 /block.c
parent284ec167e75d24aec95a7d0eec4837449ad83fb3 (diff)
Darwin build fix, by Pierre d'Herbemont.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2334 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block.c')
-rw-r--r--block.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/block.c b/block.c
index 9264e42a63..dfa1edc3ca 100644
--- a/block.c
+++ b/block.c
@@ -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;