Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Christoforides <alexis@thenull.net>2018-03-21 00:24:08 +0300
committerAlexis Christoforides <alexis@thenull.net>2018-04-23 21:24:32 +0300
commitdd6e11936be663b86e916499663541684fabe81e (patch)
treeefddc98416a3c0943a440628d978e5dec5345d31
parente81726eb290c80d8d4e69166990382546eec8384 (diff)
[runtime] Don't use clock_gettime on WatchOS and tvOS.
-rw-r--r--mono/utils/mono-time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mono/utils/mono-time.c b/mono/utils/mono-time.c
index 5c9daa68967..a3c6151a08b 100644
--- a/mono/utils/mono-time.c
+++ b/mono/utils/mono-time.c
@@ -150,8 +150,8 @@ mono_msec_boottime (void)
{
gint64 retval = 0;
- /* clock_gettime () is found by configure but its only present from ios 10 and macos 10.12 */
-#if (defined(HAVE_CLOCK_MONOTONIC_COARSE) || defined(HAVE_CLOCK_MONOTONIC)) && !(defined(TARGET_IOS) || defined(TARGET_OSX))
+ /* clock_gettime () is found by configure on Apple builds, but its only present from ios 10, macos 10.12, tvos 10 and watchos 3 */
+#if (defined(HAVE_CLOCK_MONOTONIC_COARSE) || defined(HAVE_CLOCK_MONOTONIC)) && !(defined(TARGET_IOS) || defined(TARGET_OSX) || defined(TARGET_WATCHOS) || defined(TARGET_TVOS))
clockid_t clockType =
#if HAVE_CLOCK_MONOTONIC_COARSE
CLOCK_MONOTONIC_COARSE; /* good enough resolution, fastest speed */