summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-11-25 01:53:59 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-11-25 01:53:59 +0000
commit109f4cbc7f2228f5b3f6ca0ba596beff33ee6b53 (patch)
treea046fa71f88c3252994d7dbd36fa2965dd799342
parent081f80078dccf02c1f9c61378ff88bbf1b4afb5e (diff)
downloadllvm-109f4cbc7f2228f5b3f6ca0ba596beff33ee6b53.tar.gz
llvm-109f4cbc7f2228f5b3f6ca0ba596beff33ee6b53.tar.bz2
llvm-109f4cbc7f2228f5b3f6ca0ba596beff33ee6b53.tar.xz
system_error: Even more unsupported error numbers :(.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120139 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/System/system_error.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/System/system_error.h b/include/llvm/System/system_error.h
index 73bf3dd736..c17e7bf798 100644
--- a/include/llvm/System/system_error.h
+++ b/include/llvm/System/system_error.h
@@ -506,7 +506,11 @@ enum _ {
argument_out_of_domain = EDOM,
bad_address = EFAULT,
bad_file_descriptor = EBADF,
+#ifdef EBADMSG
bad_message = EBADMSG,
+#else
+ bad_message = EINVAL,
+#endif
broken_pipe = EPIPE,
connection_aborted = ECONNABORTED,
connection_already_in_progress = EALREADY,
@@ -536,7 +540,11 @@ enum _ {
network_unreachable = ENETUNREACH,
no_buffer_space = ENOBUFS,
no_child_process = ECHILD,
+#ifdef ENOLINK
no_link = ENOLINK,
+#else
+ no_link = EINVAL,
+#endif
no_lock_available = ENOLCK,
#ifdef ENODATA
no_message_available = ENODATA,
@@ -580,7 +588,11 @@ enum _ {
owner_dead = EINVAL,
#endif
permission_denied = EACCES,
+#ifdef EPROTO
protocol_error = EPROTO,
+#else
+ protocol_error = EINVAL,
+#endif
protocol_not_supported = EPROTONOSUPPORT,
read_only_file_system = EROFS,
resource_deadlock_would_occur = EDEADLK,