Commit 2e9671daee6f575e2eca8893ec64cd0655d672bc

Authored by ths
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
@@ -44,6 +44,8 @@ @@ -44,6 +44,8 @@
44 #endif 44 #endif
45 45
46 #ifdef __sun__ 46 #ifdef __sun__
  47 +#define _POSIX_PTHREAD_SEMANTICS 1
  48 +#include <signal.h>
47 #include <sys/dkio.h> 49 #include <sys/dkio.h>
48 #endif 50 #endif
49 #ifdef __linux__ 51 #ifdef __linux__
@@ -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