From: NAKAMURA Takumi Date: Wed, 24 Nov 2010 01:29:45 +0000 (+0000) Subject: include/llvm/System/system_error.h: ECANCELED is undefined on Cygwin-1.5. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bcc3678a4ac42cd014b94061233c06f5b9c82fa9;p=oota-llvm.git include/llvm/System/system_error.h: ECANCELED is undefined on Cygwin-1.5. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120072 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/System/system_error.h b/include/llvm/System/system_error.h index 09922c94da7..73bf3dd736e 100644 --- a/include/llvm/System/system_error.h +++ b/include/llvm/System/system_error.h @@ -565,7 +565,11 @@ enum _ { not_connected = ENOTCONN, not_enough_memory = ENOMEM, not_supported = ENOTSUP, +#ifdef ECANCELED operation_canceled = ECANCELED, +#else + operation_canceled = EINVAL, +#endif operation_in_progress = EINPROGRESS, operation_not_permitted = EPERM, operation_not_supported = EOPNOTSUPP,