Eric Blake wrote:
> +/* Get all possible declarations of gethostname().  */
> +#if @UNISTD_H_HAVE_WINSOCK2_H@ && !defined _GL_INCLUDING_WINSOCK2_H
> +# define _GL_INCLUDING_WINSOCK2_H
> +# include <winsock2.h>
> +# undef _GL_INCLUDING_WINSOCK2_H
> +#endif
> 

Would it be possible to conditionalize this with
  #if @GNULIB_GETHOSTNAME@
like it was before? In a package that has nothing to do with
sockets and nothing to do with gethostname(), I wouldn't want to
see all <winsock2.h> definitions in virtually all compilation units.

Bruno


Reply via email to