diff options
-rw-r--r-- | block-raw.c | 2 | ||||
-rw-r--r-- | vl.h | 4 |
2 files changed, 6 insertions, 0 deletions
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__ @@ -45,6 +45,10 @@ #define O_BINARY 0 #endif +#ifdef __sun__ +#define ENOMEDIUM 4097 +#endif + #ifdef _WIN32 #include <windows.h> #define fsync _commit |