ports/devel/commoncpp/patches/patch-src_timer_cpp

12 lines
325 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
--- src/timer.cpp.orig Fri Jan 16 07:27:00 2009
+++ src/timer.cpp Thu Apr 2 04:56:04 2009
@@ -118,7 +118,7 @@ void TimerPort::decTimer(timeout_t timeout)
active = true;
}
-#ifdef HAVE_HIRES_TIMER
+#if defined(HAVE_HIRES_TIMER) && defined(HAVE_CLOCK_NANOSLEEP)
void TimerPort::sleepTimer(void)
{
struct timespec ts;