summaryrefslogtreecommitdiff
path: root/lang/intel-compute-runtime/files/patch-clock_gettime
diff options
context:
space:
mode:
Diffstat (limited to 'lang/intel-compute-runtime/files/patch-clock_gettime')
-rw-r--r--lang/intel-compute-runtime/files/patch-clock_gettime10
1 files changed, 7 insertions, 3 deletions
diff --git a/lang/intel-compute-runtime/files/patch-clock_gettime b/lang/intel-compute-runtime/files/patch-clock_gettime
index 34ada0f4b451..e1cf4dc32ff5 100644
--- a/lang/intel-compute-runtime/files/patch-clock_gettime
+++ b/lang/intel-compute-runtime/files/patch-clock_gettime
@@ -9,14 +9,18 @@ runtime/os_interface/linux/os_time_linux.cpp:138:24: error:
if (resolutionFunc(CLOCK_MONOTONIC_RAW, &ts)) {
^
---- shared/source/os_interface/linux/os_time_linux.cpp.orig 2020-02-28 16:16:42 UTC
+--- shared/source/os_interface/linux/os_time_linux.cpp.orig 2020-05-15 20:36:40 UTC
+++ shared/source/os_interface/linux/os_time_linux.cpp
-@@ -14,6 +14,10 @@
+@@ -14,6 +14,14 @@
#include <time.h>
+#ifndef CLOCK_MONOTONIC_RAW
-+#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
++# ifdef CLOCK_MONOTONIC_FAST
++# define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST
++# else
++# define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
++# endif
+#endif
+
namespace NEO {