Merge branch 'port' of https://github.com/fgsfdsfgs/perfect_dark into port-net

This commit is contained in:
fgsfds committed 2024-03-09 17:45:41 +01:00
commit d8b21f78e0
1 file changed
+5 -1
+5 -1
View File
@@ -25,6 +25,10 @@ static CREATEWAITABLETIMEREXAFN pfnCreateWaitableTimerExA;
#else #else
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <unistd.h> #include <unistd.h>
// figure out how to yield // figure out how to yield
@@ -305,7 +309,7 @@ void sysSleep(const s64 hns)
SetWaitableTimer(timer, &li, 0, NULL, NULL, FALSE); SetWaitableTimer(timer, &li, 0, NULL, NULL, FALSE);
WaitForSingleObject(timer, INFINITE); WaitForSingleObject(timer, INFINITE);
#else #else
const timespec spec = { 0, hns * 100 }; const struct timespec spec = { 0, hns * 100 };
nanosleep(&spec, NULL); nanosleep(&spec, NULL);
#endif #endif
} }