There is some garbage added to the patch code, I suspect that the way you downloaded the patch corrupted it.
I wrote a bash script that will download the patches correctly and apply them:
git clean -fd git reset --hard origin/master for i in 75876 75883 75878 75882 75881 75884 75877 75879 75880 do wget http://source.winehq.org/patches/data/$i -O /tmp/raw-$i.patch git apply /tmp/raw-$i.patch done ./tools/make_requests
Even before i used wget for downloads & patch -p1. Anyway i gave your script a chance, but i got during the compilation:
gcc -c -I. -I. -I../include -I../include -D__WINESRC__ -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -Wlogical-op -g -O2 -o raw_input.o raw_input.c
In file included from raw_input.c:28:
../include/winternl.h:2361: error: expected declaration specifiers or ‘...’ before ‘va_list’
../include/winternl.h:2531: error: expected declaration specifiers or ‘...’ before ‘va_list’
../include/winternl.h:2532: error: expected declaration specifiers or ‘...’ before ‘va_list’
In file included from raw_input.c:29:
../include/winbase.h:1578: error: expected declaration specifiers or ‘...’ before ‘va_list’
../include/winbase.h:1579: error: expected declaration specifiers or ‘...’ before ‘va_list’
make[1]: *** [raw_input.o] Error 1
make[1]: Leaving directory `/build/wine-git_build/server'
make: *** [server] Error 2