mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
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
This commit is contained in:
parent
df5cf72160
commit
71c2fd5cdf
2 changed files with 3 additions and 4 deletions
4
block.c
4
block.c
|
@ -35,10 +35,6 @@
|
||||||
#define SECTOR_BITS 9
|
#define SECTOR_BITS 9
|
||||||
#define SECTOR_SIZE (1 << SECTOR_BITS)
|
#define SECTOR_SIZE (1 << SECTOR_BITS)
|
||||||
|
|
||||||
#ifndef ENOMEDIUM
|
|
||||||
#define ENOMEDIUM ENODEV
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct BlockDriverAIOCBSync {
|
typedef struct BlockDriverAIOCBSync {
|
||||||
BlockDriverAIOCB common;
|
BlockDriverAIOCB common;
|
||||||
QEMUBH *bh;
|
QEMUBH *bh;
|
||||||
|
|
3
vl.h
3
vl.h
|
@ -48,6 +48,9 @@
|
||||||
#ifdef __sun__
|
#ifdef __sun__
|
||||||
#define ENOMEDIUM 4097
|
#define ENOMEDIUM 4097
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef ENOMEDIUM
|
||||||
|
#define ENOMEDIUM ENODEV
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue