Skip to contentSkip to conversation

patch for block-raw.c for Solaris

Qemu-devel Ben Taylor 1 participant 1 message Dec 28, 2006

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw

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

block-raw.c +2 -0
diff -ruN qemu-122806/block-raw.c qemu/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__
vl.h +4 -0
diff -ruN qemu-122806/vl.h qemu/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