403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
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/www/envoy/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/www/envoy/files/patch-source_common_common_posix_thread__impl.cc
--- source/common/common/posix/thread_impl.cc.orig	2019-04-05 18:07:44 UTC
+++ source/common/common/posix/thread_impl.cc
@@ -3,6 +3,8 @@
 
 #if defined(__linux__)
 #include <sys/syscall.h>
+#elif defined(__FreeBSD__)
+#include <pthread_np.h>
 #endif
 
 namespace Envoy {
@@ -13,9 +15,9 @@ namespace {
 int64_t getCurrentThreadId() {
 #ifdef __linux__
   return static_cast<int64_t>(syscall(SYS_gettid));
-#elif defined(__APPLE__)
+#elif defined(__FreeBSD__)
   uint64_t tid;
-  pthread_threadid_np(NULL, &tid);
+  tid = pthread_getthreadid_np();
   return tid;
 #else
 #error "Enable and test pthread id retrieval code for you arch in pthread/thread_impl.cc"

Youez - 2016 - github.com/yon3zu
LinuXploit