diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-11-16 18:48:21 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-11-16 18:48:21 +0000 |
commit | bd61b4b0b7518e5bddf3fd01ebceb1d9780d682d (patch) | |
tree | d3095d121a0622b241069042666c4ebb2585845e | |
parent | 1ce588c97017a75fc6120bc542e16a0757a07535 (diff) | |
download | external_llvm-bd61b4b0b7518e5bddf3fd01ebceb1d9780d682d.zip external_llvm-bd61b4b0b7518e5bddf3fd01ebceb1d9780d682d.tar.gz external_llvm-bd61b4b0b7518e5bddf3fd01ebceb1d9780d682d.tar.bz2 |
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
-rw-r--r-- | include/llvm/System/system_error.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/System/system_error.h b/include/llvm/System/system_error.h index db89efe..3bfc092 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 |