Re: sys/types.h in sys/socket.h

2010-11-21 Thread Ted Unangst
Is this enough to compile socket.h by itself? I think sockcred needs to be hidden inside bsd visible too, because you aren't providing uid_t that i can see. On Sun, Nov 21, 2010 at 3:45 AM, Philip Guenther wrote: > > ...and here's a diff for discussion that removes the sa_family_t and > socklen_

Re: sys/types.h in sys/socket.h

2010-11-21 Thread Philip Guenther
...and here's a diff for discussion that removes the sa_family_t and socklen_t typedefs from sys/types.h, transferring them to sys/socket.h and duping them in netinet/in.h, netinet6/in6.h, and sys/un.h as necessary. There are only two user-land fixes necessary for a build with this, in sasyncd

Re: sys/types.h in sys/socket.h

2010-11-20 Thread Philip Guenther
On Sat, Nov 20, 2010 at 9:10 AM, Ted Unangst wrote: > On Sat, Nov 20, 2010 at 11:54 AM, Ted Unangst wrote: >> On Sat, Nov 20, 2010 at 9:18 AM, Mark Kettenis > wrote: openbsd is apparently among the last operating systems to require sys/types.h before sys/socket.h. posix doesn't requ

Re: sys/types.h in sys/socket.h

2010-11-20 Thread Ted Unangst
On Sat, Nov 20, 2010 at 11:54 AM, Ted Unangst wrote: > On Sat, Nov 20, 2010 at 9:18 AM, Mark Kettenis wrote: >>> openbsd is apparently among the last operating systems to require >>> sys/types.h before sys/socket.h. posix doesn't require this and it runs >>> contrary to current recommendation

Re: sys/types.h in sys/socket.h

2010-11-20 Thread Ted Unangst
On Sat, Nov 20, 2010 at 9:18 AM, Mark Kettenis wrote: >> openbsd is apparently among the last operating systems to require >> sys/types.h before sys/socket.h. posix doesn't require this and it runs >> contrary to current recommendations i think, so it's just one more weird >> thing to deal wi

Re: sys/types.h in sys/socket.h

2010-11-20 Thread Mark Kettenis
> openbsd is apparently among the last operating systems to require > sys/types.h before sys/socket.h. posix doesn't require this and it runs > contrary to current recommendations i think, so it's just one more weird > thing to deal with when trying to get something to compile. > > i haven't

Re: sys/types.h in sys/socket.h

2010-11-20 Thread Stuart Henderson
On 2010/11/19 21:02, Ted Unangst wrote: > openbsd is apparently among the last operating systems to require > sys/types.h before sys/socket.h. posix doesn't require this and it runs > contrary to current recommendations i think, so it's just one more weird > thing to deal with when trying to ge

sys/types.h in sys/socket.h

2010-11-19 Thread Ted Unangst
openbsd is apparently among the last operating systems to require sys/types.h before sys/socket.h. posix doesn't require this and it runs contrary to current recommendations i think, so it's just one more weird thing to deal with when trying to get something to compile. i haven't really tested