--- 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;
