diff options
Diffstat (limited to 'linux')
-rw-r--r-- | linux/timer-lx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/timer-lx.c b/linux/timer-lx.c index 79396ec9d0..d0164e2d67 100644 --- a/linux/timer-lx.c +++ b/linux/timer-lx.c @@ -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; |