projects
/
qemu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df5cf72
)
Define ENOMEDIUM to match ENODEV if it isn't available.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 26 Jan 2007 15:37:46 +0000
(15:37 +0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 26 Jan 2007 15:37:46 +0000
(15:37 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2357
c046a42c
-6fe2-441c-8c8c-
71466251a162
block.c
patch
|
blob
|
history
vl.h
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index
dfa1edc
..
9264e42
100644
(file)
--- a/
block.c
+++ b/
block.c
@@
-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;
diff --git
a/vl.h
b/vl.h
index
5a99ed5
..
c0df579
100644
(file)
--- a/
vl.h
+++ b/
vl.h
@@
-48,6
+48,9
@@
#ifdef __sun__
#define ENOMEDIUM 4097
#endif
+#ifndef ENOMEDIUM
+#define ENOMEDIUM ENODEV
+#endif
#ifdef _WIN32
#include <windows.h>