Created attachment 402318 [details, diff] Add option -P to cpp to fix compilation with gcc-5 As is well-known in gcc-5 upstream, xorg-server is missing option -P to cpp.
...well, I was tempted to immediately close this as a duplicate of bug 546744, but this has a completely different approach...
Damn: I was looking for "xorg-server gcc-5" but not "xorg-server gcc5" when checking for duplicates... Anyway, unless the fedora patch should go to xorg-server upstream: Adding -P is the solution which gcc upstream probably has in mind: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64864 And this -P switch should actually be quite portable: http://www.zsh.org/mla/workers/2015/msg0025
It turned out that my patch causes linker problems later on. Instead of examinating the issue, it is perhaps easier to use Fedora's patch which seems not to have such problems. Therefore, I mark the issue as duplicate of bug 546744 *** This bug has been marked as a duplicate of bug 546744 ***