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
_______________________________________________
bug-gnulib mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnulib