[Top][All Lists]

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

Re: inet_ntop fix for mingw32

From: Bruno Haible
Subject: Re: inet_ntop fix for mingw32
Date: Tue, 17 Jan 2006 23:01:29 +0100
User-agent: KMail/1.5

Simon Josefsson wrote:
> >> +#include <sys/socket.h>
> >>
> >>  License:
> >>  unlimited
> >
> > Then 'socklen' should also have a dependency on 'sys_socket'.
> I'm not sure.  It gets ugly if no modules can assume sys/socket.h
> without depending on sys_socket?

That's the point of the sys_socket module.

If you don't have sys_socket module, you have to write

    #include <sys/socket.h>

If you have the sys_socket module, you can simplify it to

    #include <sys/socket.h>

It's the same logic as with <stdbool.h>, <fnmatch.h>, <regex.h> and others:
If you don't have a dependency on the module that provides the substitute,
you cannot use the header file unconditionally.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]