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

Michael J. Spencer bigcheesegs at gmail.com
Wed Nov 24 17:54:00 PST 2010


Author: mspencer
Date: Wed Nov 24 19:53:59 2010
New Revision: 120139

URL: http://llvm.org/viewvc/llvm-project?rev=120139&view=rev
Log:
system_error: Even more unsupported error numbers :(.

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=120139&r1=120138&r2=120139&view=diff
==============================================================================
--- llvm/trunk/include/llvm/System/system_error.h (original)
+++ llvm/trunk/include/llvm/System/system_error.h Wed Nov 24 19:53:59 2010
@@ -506,7 +506,11 @@
   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 @@
   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 @@
   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,





More information about the llvm-commits mailing list