diff options
-rw-r--r-- | include/llvm/System/system_error.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/System/system_error.h b/include/llvm/System/system_error.h index 09922c94da..73bf3dd736 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, |