[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
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
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.
Bruno
- Re: [bug-gnulib] Re: inet_ntop fix for mingw32, Bruno Haible, 2006/01/06
- Re: inet_ntop fix for mingw32, Simon Josefsson, 2006/01/09
- Re: [bug-gnulib] Re: inet_ntop fix for mingw32, Bruno Haible, 2006/01/09
- Re: inet_ntop fix for mingw32, Simon Josefsson, 2006/01/17
- Re: inet_ntop fix for mingw32, Bruno Haible, 2006/01/17
- Re: inet_ntop fix for mingw32, Simon Josefsson, 2006/01/17
- Re: inet_ntop fix for mingw32,
Bruno Haible <=
- Re: inet_ntop fix for mingw32, Simon Josefsson, 2006/01/18
- Re: inet_ntop fix for mingw32, Bruno Haible, 2006/01/18
- Re: inet_ntop fix for mingw32, Simon Josefsson, 2006/01/18
- socklen_t (was: Re: inet_ntop fix for mingw32), Simon Josefsson, 2006/01/19
- Re: inet_ntop fix for mingw32, Simon Josefsson, 2006/01/18