changeset 3090:57abb24ac58b

HAVE_NANOSLEEP
author alex
date Fri, 23 Nov 2001 18:25:32 +0000
parents 46e5ece0b15b
children a98d486508db
files linux/timer-lx.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;