[llvm-commits] [llvm] r119365 - /llvm/trunk/include/llvm/System/system_error.h

Michael J. Spencer bigcheesegs at gmail.com
Tue Nov 16 10:48:21 PST 2010


Author: mspencer
Date: Tue Nov 16 12:48:21 2010
New Revision: 119365

URL: http://llvm.org/viewvc/llvm-project?rev=119365&view=rev
Log:
system_error: More conditional error codes for Darwin.

Modified:
    llvm/trunk/include/llvm/System/system_error.h

Modified: llvm/trunk/include/llvm/System/system_error.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/System/system_error.h?rev=119365&r1=119364&r2=119365&view=diff
==============================================================================
--- llvm/trunk/include/llvm/System/system_error.h (original)
+++ llvm/trunk/include/llvm/System/system_error.h Tue Nov 16 12:48:21 2010
@@ -570,7 +570,11 @@
   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 @@
   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





More information about the llvm-commits mailing list