Re: sys/tcp.h does not compile with _POSIX_SOURCE

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ted Unangst
Date: Friday, October 22, 2010 - 7:33 pm

On Thu, 21 Oct 2010, hyjial wrote:


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;
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sys/tcp.h does not compile with _POSIX_SOURCE, hyjial, (Thu Oct 21, 9:52 am)
Re: sys/tcp.h does not compile with _POSIX_SOURCE, Ted Unangst, (Fri Oct 22, 7:33 pm)
Re: sys/tcp.h does not compile with _POSIX_SOURCE, Philip Guenther, (Fri Oct 22, 9:16 pm)
Re: sys/tcp.h does not compile with _POSIX_SOURCE, Philip Guenther, (Fri Oct 22, 10:45 pm)
Re: sys/tcp.h does not compile with _POSIX_SOURCE, Philip Guenther, (Sat Oct 23, 4:21 pm)