diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-23 18:25:32 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-23 18:25:32 +0000 |
commit | 575828bf12791a7809e37807cf4a835f199eb8f8 (patch) | |
tree | 536ee66b93c98f2df794dc4debf86d1f18ca2050 /linux | |
parent | 1393c53eb48a695b3dc2c803fa317104edbe1fa7 (diff) | |
download | mpv-575828bf12791a7809e37807cf4a835f199eb8f8.tar.bz2 mpv-575828bf12791a7809e37807cf4a835f199eb8f8.tar.xz |
HAVE_NANOSLEEP
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3091 b3059339-0415-0410-9bf9-f77b7e298cf2
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; |