在网上下了一个vc6写的代码。
然后我用我机子上的vc6能完全编译通过。运行正常。
但用vc2003去编译这代码时,却报错了。error C2011 "sockaddr_storage":"struct类型重定义"。 双击这错误,就打开了Packet32.h了,
并指到 struct sockaddr_storage {
            sa_family_t __ss_family;     /* address family */
                /* Following fields are implementation specific */
            char     __ss_pad1[_SS_PAD1SIZE];
                 /* 6 byte pad, this is to make implementation
                 /* specific pad up to alignment field that */
                 /* follows explicit in the data structure */
            int64_t __ss_align;     /* field to force desired structure */
                 /* storage alignment */
            char     __ss_pad2[_SS_PAD2SIZE];
                 /* 112 byte pad to achieve desired size, */
                 /* _SS_MAXSIZE value minus size of ss_family */
                 /* __ss_pad1, __ss_align fields is 112 */
        };咱解决哇?