Skip to content

Commit

Permalink
Merge branch 'port' of https://github.com/fgsfdsfgs/perfect_dark into…
Browse files Browse the repository at this point in the history
… port-debugger
  • Loading branch information
fgsfdsfgs committed Mar 9, 2024
2 parents 242a89a + 92a9ac4 commit 20534a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion port/src/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ static CREATEWAITABLETIMEREXAFN pfnCreateWaitableTimerExA;

#else

#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif

#include <unistd.h>

// figure out how to yield
Expand Down Expand Up @@ -293,7 +297,7 @@ void sysSleep(const s64 hns)
SetWaitableTimer(timer, &li, 0, NULL, NULL, FALSE);
WaitForSingleObject(timer, INFINITE);
#else
const timespec spec = { 0, hns * 100 };
const struct timespec spec = { 0, hns * 100 };
nanosleep(&spec, NULL);
#endif
}
Expand Down

0 comments on commit 20534a7

Please sign in to comment.