aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--block-raw.c2
-rw-r--r--vl.h4
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__
diff --git a/vl.h b/vl.h
index b63145e..9d95494 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 <windows.h>
#define fsync _commit