From 2512c847453c24b928c34beed88902fbb6877b7a Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 27 Sep 2001 05:24:26 +0000 Subject: Update to accomodate the header file changes --- libc/unistd/sleep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/unistd/sleep.c') diff --git a/libc/unistd/sleep.c b/libc/unistd/sleep.c index e11770563..b6c410fb5 100644 --- a/libc/unistd/sleep.c +++ b/libc/unistd/sleep.c @@ -4,13 +4,13 @@ #include #include -void usleep(unsigned int usec) +int usleep (__useconds_t usec) { struct timeval tv; tv.tv_sec = usec / 1000000; tv.tv_usec = usec % 1000000; - select(0, 0, 0, 0, &tv); + return(select(0, 0, 0, 0, &tv)); } unsigned int sleep(unsigned int sec) -- cgit v1.2.3