summaryrefslogtreecommitdiff
path: root/lang/pocl/files/patch-lib_CL_pocl__timing.c
blob: 2c307fffca44f0543bafd2b573814e51499d6edd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- lib/CL/pocl_timing.c.orig	2025-05-21 11:53:16 UTC
+++ lib/CL/pocl_timing.c
@@ -74,8 +74,8 @@ uint64_t pocl_gettimemono_ns() {
   struct timespec timespec;
 # ifdef CLOCK_MONOTONIC_RAW /* Linux */
   clock_gettime(CLOCK_MONOTONIC_RAW, &timespec);
-# elif defined(CLOCK_UPTIME_FAST) /* FreeBSD, DragonFlyBSD, etc */
-  clock_gettime(CLOCK_UPTIME_FAST, &timespec);
+# elif defined(CLOCK_MONOTONIC_FAST) /* FreeBSD, DragonFlyBSD, etc */
+  clock_gettime(CLOCK_MONOTONIC_FAST, &timespec);
 # elif defined(CLOCK_MONOTONIC) /* POSIX 2008, NetBSD, etc */
   clock_gettime(CLOCK_MONOTONIC, &timespec);
 # else /* older POSIX didn't define CLOCK_MONOTONIC */