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
diff --git a/block-raw.c b/block-raw.c
index 9f4a0a1..9fe953c 100644
--- a/block-raw.c
+++ b/block-raw.c
@@ -44,6 +44,8 @@
#endif
#ifdef __sun__
+#define _POSIX_PTHREAD_SEMANTICS 1
+#include <signal.h>
#include <sys/dkio.h>
#endif
#ifdef __linux__
diff --git a/vl.h b/vl.h
index b63145e..9d95494 100644
--- a/vl.h
+++ b/vl.h
@@ -45,6 +45,10 @@
#define O_BINARY 0
#endif
+#ifdef __sun__
+#define ENOMEDIUM 4097
+#endif
+
#ifdef _WIN32
#include <windows.h>
#define fsync _commit