403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
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/textproc/randlm/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/textproc/randlm/files/patch-src-LDHT-Util.h
--- src/LDHT/Util.h.orig	2012-03-30 10:53:05 UTC
+++ src/LDHT/Util.h
@@ -10,6 +10,10 @@
 #include <cstdlib>
 #include <cstring>
 #include <stdint.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
 
 #define V(expr) std::cerr << __FILE__ << ":" \
                           << __LINE__ << " " \
@@ -43,6 +47,9 @@ class Util { (public)
     static uint64_t hash(uint64_t a, uint64_t b, uint64_t P, uint8_t* e);
     static uint64_t hash(uint64_t a, uint64_t b, uint64_t P, uint64_t e);
     static inline uint64_t rdtsc() {
+#if defined(__powerpc__)
+        return __builtin_readcyclecounter();
+#else
         uint32_t lo, hi;
         __asm__ __volatile__(
                 "xorl %%eax,%%eax\n"
@@ -52,6 +59,7 @@ class Util { (public)
                 :
                 : "%ebx", "%ecx");
         return static_cast<uint64_t>(hi) << 32 | lo;
+#endif
     };
 };
 

Youez - 2016 - github.com/yon3zu
LinuXploit