[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unistd.h -vs- winnt.h

From: Tom Tromey
Subject: Re: unistd.h -vs- winnt.h
Date: Wed, 20 Nov 2013 12:31:01 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

>>>>> "Paul" == Paul Eggert <address@hidden> writes:

Paul> On 11/20/2013 07:09 AM, Tom Tromey wrote:
>> However, after some exploration I discovered that I could eliminate the
>> gethostname error by dropping the strstr and strerror modules.

Paul> Thanks, I assume the problem is fixed then, at least for you.


Paul> I think the gethostname disaster is because we have to include
Paul> winsock2.h before defining our own gethostname, to avoid
Paul> clashes with the system gethostname.  Or something.
Paul> (I don't use Windows.)

It seems like there must be another way.  But I don't actually use
Windows, either, I just sometimes do a cross-build to verify that a
patch at least still builds there.

Also mysterious to me is why the strerror module would have this impact.
That is, with strerror, the gnulib unistd.h requires me to import the
gethostname module.  Without strerror, it works fine.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]