[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (x)gethostname
From: |
Simon Josefsson |
Subject: |
Re: (x)gethostname |
Date: |
Fri, 18 Jan 2008 15:35:04 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) |
Bruno Haible <address@hidden> 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@ && address@hidden@), 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
Re: (x)gethostname, Simon Josefsson, 2008/01/17