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