From: Michael J. Spencer Date: Tue, 16 Nov 2010 18:48:21 +0000 (+0000) Subject: system_error: More conditional error codes for Darwin. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bd61b4b0b7518e5bddf3fd01ebceb1d9780d682d;p=oota-llvm.git system_error: More conditional error codes for Darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119365 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/System/system_error.h b/include/llvm/System/system_error.h index db89efeedb6..3bfc092ef31 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