https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106170
--- Comment #1 from cqwrteur <unlvsur at live dot com> --- windows does not provide those things. You can use EnterCriticalSection/ LeaveCriticalSection instead. I can write a patch to fix it for windows.