Bruno Haible <[EMAIL PROTECTED]> writes:

> Simon,
>
>> If we modify gethostname.m4 as I suggested, it will detect that mingw do
>> have a gethostname function, and consequently, the gethostname module is
>> not be needed.
>
> Actually, the replacement function is not needed. But the piece of
> configure.ac from modules/gethostname is expanded into configure in all
> cases. And it sets GNULIB_GETHOSTNAME=1 unconditionally.
>
>> In that case, though, unistd.h needs to declare the
>> function, since MinGW's unistd.h doesn't.  So the test in unistd.h needs
>> to be ...
>
> Then it needs to be (@GNULIB_GETHOSTNAME@ && [EMAIL PROTECTED]@), and
> your gethostname.m4 file needs to set a HAVE_DECL_GETHOSTNAME variable.

Ah, I see.

> Anyway, it needs more prerequisite work regarding the modules 'sockets',
> 'errno', 'strerror'.

Right, I'm starting with that, see next message.

/Simon


Reply via email to