mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
Add usleep
This commit is contained in:
parent
f8a86bf7b6
commit
1b255bfe15
@ -53,6 +53,12 @@ int __libnx_gtod(struct _reent *ptr, struct timeval *tp, struct timezone *tz) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int usleep(useconds_t useconds)
|
||||
{
|
||||
svcSleepThread(useconds * 1000ull);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void newlibSetup(void) {
|
||||
// Register newlib syscalls
|
||||
__syscalls.exit = __libnx_exit;
|
||||
|
Loading…
Reference in New Issue
Block a user