aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/System/system_error.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/System/system_error.h b/include/llvm/System/system_error.h
index db89efeedb..3bfc092ef3 100644
--- a/include/llvm/System/system_error.h
+++ b/include/llvm/System/system_error.h
@@ -570,7 +570,11 @@ enum _ {
operation_not_permitted = EPERM,
operation_not_supported = EOPNOTSUPP,
operation_would_block = EWOULDBLOCK,
+#ifdef EOWNERDEAD
owner_dead = EOWNERDEAD,
+#else
+ owner_dead = EINVAL,
+#endif
permission_denied = EACCES,
protocol_error = EPROTO,
protocol_not_supported = EPROTONOSUPPORT,
@@ -578,7 +582,11 @@ enum _ {
resource_deadlock_would_occur = EDEADLK,
resource_unavailable_try_again = EAGAIN,
result_out_of_range = ERANGE,
+#ifdef ENOTRECOVERABLE
state_not_recoverable = ENOTRECOVERABLE,
+#else
+ state_not_recoverable = EINVAL,
+#endif
#ifdef ETIME
stream_timeout = ETIME,
#else