diff linux/timer-lx.c @ 3090:57abb24ac58b

HAVE_NANOSLEEP
author alex
date Fri, 23 Nov 2001 18:25:32 +0000
parents a6c5a537f30a
children 7bb8f7905000
line wrap: on
line diff
--- a/linux/timer-lx.c	Fri Nov 23 18:25:09 2001 +0000
+++ b/linux/timer-lx.c	Fri Nov 23 18:25:32 2001 +0000
@@ -3,10 +3,11 @@
 #include <unistd.h>
 #include <time.h>
 #include <sys/time.h>
+#include "../config.h"
 
 int usec_sleep(int usec_delay)
 {
-#if	1
+#ifdef HAVE_NANOSLEEP
     struct timespec ts;
     ts.tv_sec  =  usec_delay / 1000000;
     ts.tv_nsec = (usec_delay % 1000000) * 1000;