On Thu, 21 Oct 2010, hyjial wrote: > There is a u_int on line 50 of sys/tcp.h. u_int is defined only if > __BSD_VISIBLE is which it is not is _POSIX_SOURCE is defined. > > Is this intended ?
No. Easy fix. Index: tcp.h =================================================================== RCS file: /home/tedu/cvs/src/sys/netinet/tcp.h,v retrieving revision 1.17 diff -u -r1.17 tcp.h --- tcp.h 27 Apr 2006 02:19:32 -0000 1.17 +++ tcp.h 23 Oct 2010 02:30:34 -0000 @@ -47,11 +47,11 @@ tcp_seq th_seq; /* sequence number */ tcp_seq th_ack; /* acknowledgement number */ #if _BYTE_ORDER == _LITTLE_ENDIAN - u_int th_x2:4, /* (unused) */ + u_int32_t th_x2:4, /* (unused) */ th_off:4; /* data offset */ #endif #if _BYTE_ORDER == _BIG_ENDIAN - u_int th_off:4, /* data offset */ + u_int32_t th_off:4, /* data offset */ th_x2:4; /* (unused) */ #endif u_int8_t th_flags;