Make ip.h and tcp.h work under -fnative-struct or -mms-bitfields

Wu Yongwei
Mon Nov 11 19:03:00 GMT 2002

Sorry for my ignorance and noise, but I still want to ask what problems 
could occur if I use u_char instead of u_int to denote bit fields.

Any answer is appreciated.

(Of course I would like to have a header file working across all my 
Windows compilers. Others may appreciate it too.)

Best regards,

Wu Yongwei

--- Original Message from Christopher Faylor ---

Danny's suggestion is correct.  The rest of the header files which 
accomodate this are probably using __attribute__((packed)) .  The 
argument that the header works ok for you on MSVC is a non-issue for cygwin.


More information about the Cygwin-patches mailing list