开发者

tcp.h error with gcc 4.4.1

I just upgraded to Ubuntu 9.1 which comes with gcc 4.4.1 and I have a problem compiling my application:

/usr/include/linux/tcp.h:72: error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression

lines in cp.h causing errors:

     ...
enum { 
    TCP_FLAG_CWR = __cpu_to_be32(0x00800000),
    TCP_FLAG_ECE = __cpu_to_be32(0x00400000),
    TCP_FLAG_URG = __cpu_to_be32(0x00200000),
    TCP_FLAG_ACK = __cpu_to_be32(0x0开发者_如何学JAVA0100000),
     ...

Any ideas what can be done?


include netinet/tcp.h instead.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜