diff --git a/port/src/system.c b/port/src/system.c index 473d13c80..9606b32ed 100644 --- a/port/src/system.c +++ b/port/src/system.c @@ -25,6 +25,10 @@ static CREATEWAITABLETIMEREXAFN pfnCreateWaitableTimerExA; #else +#ifndef _GNU_SOURCE +#define _GNU_SOURCE 1 +#endif + #include // figure out how to yield @@ -305,7 +309,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 }