diff options
Diffstat (limited to 'lang/pocl/files/patch-lib_CL_pocl__timing.c')
-rw-r--r-- | lang/pocl/files/patch-lib_CL_pocl__timing.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/pocl/files/patch-lib_CL_pocl__timing.c b/lang/pocl/files/patch-lib_CL_pocl__timing.c new file mode 100644 index 000000000000..5450f1b75652 --- /dev/null +++ b/lang/pocl/files/patch-lib_CL_pocl__timing.c @@ -0,0 +1,13 @@ +--- lib/CL/pocl_timing.c.orig 2022-06-10 10:09:05 UTC ++++ lib/CL/pocl_timing.c +@@ -69,8 +69,8 @@ uint64_t pocl_gettimemono_ns() { + struct timespec timespec; + # ifdef CLOCK_MONOTONIC_RAW /* Linux */ + clock_gettime(CLOCK_MONOTONIC_RAW, ×pec); +-# elif defined(CLOCK_UPTIME_FAST) /* FreeBSD, DragonFlyBSD, etc */ +- clock_gettime(CLOCK_UPTIME_FAST, ×pec); ++# elif defined(CLOCK_MONOTONIC_FAST) /* FreeBSD, DragonFlyBSD, etc */ ++ clock_gettime(CLOCK_MONOTONIC_FAST, ×pec); + # elif defined(CLOCK_MONOTONIC) /* POSIX 2008, NetBSD, etc */ + clock_gettime(CLOCK_MONOTONIC, ×pec); + # else /* older POSIX didn't define CLOCK_MONOTONIC */ |