include/llvm/System/system_error.h: ECANCELED is undefined on Cygwin-1.5.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 24 Nov 2010 01:29:45 +0000 (01:29 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 24 Nov 2010 01:29:45 +0000 (01:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120072 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/System/system_error.h

index 09922c94da71b61da561b32c7488fccff7085f1c..73bf3dd736e7ee3a781111bd6d00ccd2d17f765c 100644 (file)
@@ -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,