https://bugs.winehq.org/show_bug.cgi?id=44327
--- Comment #1 from Zhenya Zenitur@yandex.ru --- I'd found the reason why it's compiling on a localhost. I had upgraded Glibc from 2.11 to 2.17, so /usr/include/bit/sched.h is now contain SCHED_IDLE. In the OBS service, there is Glibc 2.11.
You can see my package there: https://build.opensuse.org/package/show/home:linux4humans:wine-staging/wine-...