packages/net/btpd/patches/001-gettime.patch

13 lines
400 B
Diff
Raw Normal View History

diff -urN btpd-0.15/evloop/timer.c btpd-0.15-hack/evloop/timer.c
--- btpd-0.15/evloop/timer.c 2009-02-09 14:12:28.000000000 -0500
+++ btpd-0.15-hack/evloop/timer.c 2009-06-19 21:41:02.000000000 -0400
@@ -14,7 +14,7 @@
int
evtimer_gettime(struct timespec *ts)
{
- return clock_gettime(TIMER_CLOCK, ts);
+ return clock_gettime(CLOCK_REALTIME, ts);
}
#elif defined(HAVE_MACH_ABSOLUTE_TIME)