tideways / php-xhprof-extension

This XHProf PHP extension fork has outlived its purpose and is archived in favor of the revitalized https://github.com/longxinH/xhprof
https://tideways.com
Apache License 2.0
1.63k stars 209 forks source link

Add #include "stdint.h" to please Alpine/Musl? #73

Closed beberlei closed 5 years ago

beberlei commented 5 years ago

@andypost can you check about #72 with this PR?

andypost commented 5 years ago

Will check and comment today

andypost commented 5 years ago

Checked and it does not solved but

--- a/timer.h
+++ b/timer.h
@@ -76,6 +76,7 @@
 #endif
         case TIDEWAYS_XHPROF_CLOCK_TSC:
 #if defined(__i386__)
+            ;
             int64_t ret;
             __asm__ volatile("rdtsc" : "=A"(ret));
             return ret;

fixed build and extension works

beberlei commented 5 years ago

@andypost that makes no sense to me, but ok :-) I tried it another way, can you check?

andypost commented 5 years ago

Nice! it works!