diff --git a/newlib/libc/sys/jehanne/syscalls.c b/newlib/libc/sys/jehanne/syscalls.c index b29ff11b2..f1040d4eb 100644 --- a/newlib/libc/sys/jehanne/syscalls.c +++ b/newlib/libc/sys/jehanne/syscalls.c @@ -21,6 +21,7 @@ #include typedef unsigned long clock_t; +typedef unsigned long useconds_t; extern void initialize_newlib(void); static void newlib(int argc, char *argv[]) __attribute__((noreturn)); @@ -200,6 +201,13 @@ sleep(unsigned int seconds) return POSIX_sleep(seconds); } +int +usleep(useconds_t usec) +{ + int *errnop = &_REENT->_errno; + return POSIX_usleep(errnop, usec); +} + int pipe(int fildes[2]) {