patch for block-raw.c for Solaris
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
@@ -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
@@ -45,6 +45,10 @@#define O_BINARY 0#endif +#ifdef __sun__ +#define ENOMEDIUM 4097 +#endif +#ifdef _WIN32#include <windows.h> #define fsync _commit