CVS: main/linux timer-lx.c,1.4,1.5
23 Nov
2001
23 Nov
'01
1:25 p.m.
Update of /cvsroot/mplayer/main/linux In directory mplayer:/var/tmp.root/cvs-serv19363 Modified Files: timer-lx.c Log Message: HAVE_NANOSLEEP Index: timer-lx.c =================================================================== RCS file: /cvsroot/mplayer/main/linux/timer-lx.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- timer-lx.c 25 Oct 2001 23:34:14 -0000 1.4 +++ timer-lx.c 23 Nov 2001 18:25:32 -0000 1.5 @@ -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;
8754
Age (days ago)
8754
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alex Beregszaszi