aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--block.c4
-rw-r--r--vl.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/block.c b/block.c
index dfa1edc3ca..9264e42a63 100644
--- 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 5a99ed53bf..c0df579551 100644
--- 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>