* [Qemu-devel] patch for block-raw.c for Solaris
@ 2006-12-28 21:17 Ben Taylor
0 siblings, 0 replies; only message in thread
From: Ben Taylor @ 2006-12-28 21:17 UTC (permalink / raw)
To: Qemu-devel
[-- Attachment #1: Type: text/plain, Size: 143 bytes --]
This is a patch to make block-raw.c compile correctly on Solaris.
I successfully created a raw image file after the patch was applied.
Ben
[-- Attachment #2: qemu-solaris-blockraw.patch --]
[-- Type: text/x-patch, Size: 625 bytes --]
diff -ruN qemu-122806/block-raw.c qemu/block-raw.c
--- qemu-122806/block-raw.c 2006-12-22 09:19:53.000000000 -0500
+++ qemu/block-raw.c 2006-12-28 15:46:31.282932000 -0500
@@ -44,6 +44,8 @@
#endif
#ifdef __sun__
+#define _POSIX_PTHREAD_SEMANTICS 1
+#include <signal.h>
#include <sys/dkio.h>
#endif
#ifdef __linux__
diff -ruN qemu-122806/vl.h qemu/vl.h
--- qemu-122806/vl.h 2006-12-24 12:12:43.000000000 -0500
+++ qemu/vl.h 2006-12-28 15:49:43.181801000 -0500
@@ -45,6 +45,10 @@
#define O_BINARY 0
#endif
+#ifdef __sun__
+#define ENOMEDIUM 4097
+#endif
+
#ifdef _WIN32
#include <windows.h>
#define fsync _commit
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-28 21:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-28 21:17 [Qemu-devel] patch for block-raw.c for Solaris Ben Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).