tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bootstrap fails on OpenBSD 4.4



Joerg Sonnenberger wrote:
> On Sat, Nov 08, 2008 at 08:16:35PM +0000, Alexander Nasonov wrote:
> > > config.log from libnbcompat please.
> > 
> > Attached.
> 
> Thaks, got it from Georg offlist. It should be fixed. Someone should
> raise a OpenBSD PR about not being able to include sys/socket.h and
> netinet/in.h directly, which is just lame.

If it's a bug, then it's a documented bug:

$ man socket
SOCKET(2)                 OpenBSD Programmer's Manual                SOCKET(2)

NAME
     socket - create an endpoint for communication

SYNOPSIS
     #include <sys/types.h>
     #include <sys/socket.h>
...

POSIX does not require <sys/types.h>:

$ lynx -dump 
http://www.opengroup.org/onlinepubs/009695399/functions/socket.html |head -n 15

                 The Open Group Base Specifications Issue 6
                       IEEE Std 1003.1, 2004 Edition
       Copyright  2001-2004 The IEEE and The Open Group, All Rights
                                 reserved.
     _________________________________________________________________

    NAME

     socket - create an endpoint for communication

    SYNOPSIS

     #include <[1]sys/socket.h>
     int socket(int domain, int type, int protocol);

Alex


Home | Main Index | Thread Index | Old Index