Commit 2e9671daee6f575e2eca8893ec64cd0655d672bc
1 parent
eec85c2a
patch for block-raw.c for Solaris, by Ben Taylor.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2294 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
6 additions
and
0 deletions
block-raw.c
vl.h
@@ -45,6 +45,10 @@ | @@ -45,6 +45,10 @@ | ||
45 | #define O_BINARY 0 | 45 | #define O_BINARY 0 |
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | +#ifdef __sun__ | ||
49 | +#define ENOMEDIUM 4097 | ||
50 | +#endif | ||
51 | + | ||
48 | #ifdef _WIN32 | 52 | #ifdef _WIN32 |
49 | #include <windows.h> | 53 | #include <windows.h> |
50 | #define fsync _commit | 54 | #define fsync _commit |