Commit 71c2fd5cdfa1106e109c2554d511bdb3bcdccb05

Authored by ths
1 parent df5cf721

Define ENOMEDIUM to match ENODEV if it isn't available.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2357 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 2 changed files with 3 additions and 4 deletions
... ... @@ -35,10 +35,6 @@
35 35 #define SECTOR_BITS 9
36 36 #define SECTOR_SIZE (1 << SECTOR_BITS)
37 37  
38   -#ifndef ENOMEDIUM
39   -#define ENOMEDIUM ENODEV
40   -#endif
41   -
42 38 typedef struct BlockDriverAIOCBSync {
43 39 BlockDriverAIOCB common;
44 40 QEMUBH *bh;
... ...
... ... @@ -48,6 +48,9 @@
48 48 #ifdef __sun__
49 49 #define ENOMEDIUM 4097
50 50 #endif
  51 +#ifndef ENOMEDIUM
  52 +#define ENOMEDIUM ENODEV
  53 +#endif
51 54  
52 55 #ifdef _WIN32
53 56 #include <windows.h>
... ...