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

2010-10-23 Thread Philip Guenther
The union of Ted and my diffs has been committed, so this is fixed for -current. Philip Guenther

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

2010-10-22 Thread Philip Guenther
On Fri, 22 Oct 2010, Philip Guenther wrote: > Instead, how about making comply with SUS/POSIX, which > says that in a conforming environment this header file shall define > TCP_NODELAY and may declare additional TCP_* macros, but shall not > otherwise intrude on the applicatiojn visible namespa

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

2010-10-22 Thread Philip Guenther
On Fri, 22 Oct 2010, Ted Unangst wrote: > 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. (This is PR 6192) Instead, how ab

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

2010-10-22 Thread Ted Unangst
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:

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

2010-10-22 Thread Russell
On 10/21/2010 09:52 AM, hyjial wrote: Hi list ! 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 ? Hit into this when trying to build a program which uses libsoup. Thanks, hyjial I was hit with