aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2010-11-24 01:29:45 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2010-11-24 01:29:45 +0000
commitbcc3678a4ac42cd014b94061233c06f5b9c82fa9 (patch)
treebcb7e87981dc6a60ab934f997dba15fca66f7d0c /include/llvm/System
parent9c336fabd59fbdbe9129d76fbbee32261ac7c8f0 (diff)
downloadexternal_llvm-bcc3678a4ac42cd014b94061233c06f5b9c82fa9.zip
external_llvm-bcc3678a4ac42cd014b94061233c06f5b9c82fa9.tar.gz
external_llvm-bcc3678a4ac42cd014b94061233c06f5b9c82fa9.tar.bz2
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
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/system_error.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/System/system_error.h b/include/llvm/System/system_error.h
index 09922c9..73bf3dd 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,