diff --git a/block-raw.c b/block-raw.c index 9f4a0a1d2a..9fe953c303 100644 --- a/block-raw.c +++ b/block-raw.c @@ -44,6 +44,8 @@ #endif #ifdef __sun__ +#define _POSIX_PTHREAD_SEMANTICS 1 +#include #include #endif #ifdef __linux__ diff --git a/vl.h b/vl.h index b63145e352..9d95494a0e 100644 --- a/vl.h +++ b/vl.h @@ -45,6 +45,10 @@ #define O_BINARY 0 #endif +#ifdef __sun__ +#define ENOMEDIUM 4097 +#endif + #ifdef _WIN32 #include #define fsync _commit