configure: Workaround for broken linux header(__u64 depends on __GNUC__)

Detlef Riekenberg wine.dev at web.de
Tue Dec 23 07:35:27 CST 2008


Various linux headers depend on gcc, so wine will not compile with a
different compiler (pcc as example)

The main issue are the typedefs for __u64 and __s64 in <linux/types.h>

The header was fixed on 02.may.2008 for 2.6.26:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=edfa5cfa3dc5bfa95e6aa82a2b8904e7f6c35ed7

Does wine can use a workaround, or does wine depend on a workaround in
every compiler?

With the attached patch, configure works with the newest pcc:
http://pcc.ludd.ltu.se/

The gcc folks already discuss the need to add a new define to identify
gcc,
as __GNUC__ is really used to detect the gcc implementation/extensions
of c

-- 
 
By by ... Detlef

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-configure-Workaround-for-broken-linux-header.txt
Type: application/mbox
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081223/ae81dec2/attachment-0001.bin 


More information about the wine-patches mailing list