On Sat, Nov 20, 2010 at 9:18 AM, Mark Kettenis <mark.kette...@xs4all.nl>
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 get something to compile.
>>
>>  i haven't really tested this, i'm just throwing it out there.
>>
>
> Sorry, but blindly including <sys/types.h> isn't allowed by POSIX.

Requiring everyone to include sys/types.h before socket.h isn't
allowed by posix either.  This way, at least the code compiles without
changes.

our socket.h header is broken.  this makes it better.

Reply via email to