https://bugs.winehq.org/show_bug.cgi?id=51926
--- Comment #10 from studiosg@giustetti.net --- The patch works for loader.c. To achieve a full build I had to patch some other files in the same way:
./dlls/netapi32/unixlib.c ./dlls/ntdll/unix/loader.c ./dlls/ntdll/unix/process.c ./dlls/winspool.drv/info.c ./server/ptrace.c ./server/request.c ./tools/tools.h
Attached you'll find an archive containing all of the resulting patches. Tomorrow I'll try to merge them into a single one and perform an unattended full build to check if the resulting packages works. I'll let you know.
Thanks again
have a nice day Simone