https://bugs.winehq.org/show_bug.cgi?id=42547
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- Hi, can you explain better what you are trying do? The mentioned patches cannot affect winex11.drv.
Where did you get wine source from? Was it from git?
The code mentioned in the error log was added by a different patch: http://source.winehq.org/git/wine.git/commitdiff/448433ae034841b47b79af1c652...
Could it be a problem of old headers? Did you try make clean && make?