https://bugs.winehq.org/show_bug.cgi?id=49938
--- Comment #3 from Ruslan Kabatsayev b7.10110111@gmail.com --- (In reply to Hans Leidekker from comment #1)
Is this a fresh prefix? Can you revert that patch and see if it restores the old behavior?
OK, now tried actual git-revert, and after adding the missing `#include <fcntl.h>` it compiled fine. With this version (cce4f36e214125173a8df84d27ba5b33df8d1434 + revert + add include) things work fine again—no error messages, no delays.