qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Ben Taylor <sol10x86@cox.net>
To: Qemu-devel@nongnu.org
Subject: [Qemu-devel] patch for block-raw.c for Solaris
Date: Thu, 28 Dec 2006 16:17:01 -0500	[thread overview]
Message-ID: <7082730.1167340621981.JavaMail.root@eastrmwml04.mgt.cox.net> (raw)

[-- 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

                 reply	other threads:[~2006-12-28 21:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7082730.1167340621981.JavaMail.root@eastrmwml04.mgt.cox.net \
    --to=sol10x86@cox.net \
    --cc=Qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).