diff --git a/mono/utils/mono-log-darwin.c b/mono/utils/mono-log-darwin.c index 3cb127bad59..30ff5edc307 100644 --- a/mono/utils/mono-log-darwin.c +++ b/mono/utils/mono-log-darwin.c @@ -5,7 +5,8 @@ */ #include -#if (defined(HOST_WATCHOS) && (__WATCH_OS_VERSION_MIN_REQUIRED >= __WATCHOS_3_0)) || defined(HOST_MACCAT) +#if (defined(HOST_WATCHOS) && (__WATCH_OS_VERSION_MIN_REQUIRED >= __WATCHOS_3_0)) || defined(HOST_MACCAT) \ + || (defined(HOST_IOS) && (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 100000)) /* emitted by clang: * > /Users/lewurm/work/mono-watch4/mono/utils/mono-log-darwin.c:35:2: error: 'asl_log' is \ * > deprecated: first deprecated in watchOS 3.0 - os_log(3) has replaced \