diff options
-rw-r--r-- | block.c | 4 | ||||
-rw-r--r-- | vl.h | 3 |
2 files changed, 3 insertions, 4 deletions
@@ -35,10 +35,6 @@ #define SECTOR_BITS 9 #define SECTOR_SIZE (1 << SECTOR_BITS) -#ifndef ENOMEDIUM -#define ENOMEDIUM ENODEV -#endif - typedef struct BlockDriverAIOCBSync { BlockDriverAIOCB common; QEMUBH *bh; @@ -48,6 +48,9 @@ #ifdef __sun__ #define ENOMEDIUM 4097 #endif +#ifndef ENOMEDIUM +#define ENOMEDIUM ENODEV +#endif #ifdef _WIN32 #include <windows.h> |