From 7f1c9da99804235212888abda7ba7f06ee3afc70 Mon Sep 17 00:00:00 2001 From: ths Date: Thu, 18 Jan 2007 22:43:16 +0000 Subject: Darwin build fix, by Pierre d'Herbemont. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2334 c046a42c-6fe2-441c-8c8c-71466251a162 --- block.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'block.c') 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; -- cgit v1.2.3