remove __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS checks in stdint.h
[musl] / src / time / timer_getoverrun.c
index 1334e45..8a86833 100644 (file)
@@ -3,5 +3,6 @@
 
 int timer_getoverrun(timer_t t)
 {
-       return syscall(SYS_timer_getoverrun, t->timerid);
+       if ((uintptr_t)t >= 0x100000) t = ((pthread_t)t)->result;
+       return syscall(SYS_timer_getoverrun, (long)t);
 }