Re: [PATCH v3 10/13] don't check for unistd.h

Eli Zaretskii
2013-11-20T03:46:32Z

> From: Tom Tromey <tromey@redhat.com>
> Cc: <gdb-patches@sourceware.org>
> Date: Tue, 19 Nov 2013 14:57:53 -0700
>
> Pierre> How could this problem be solved?
>
> Tom> I'll send you a patch to try shortly.
>
> Well, so I thought. It turned into an insane nightmare. The unistd
> module pulls <winnt.h> into everything, which stomps all over our
> namespace.
>
> I'm probably going to revert the whole series tomorrow morning.

Perhaps we could still leave it, and overcome the gethostname problem
on our own.

Pierre, can you see if 'configure' detects the presence of gethostname
when it probes the system? If not, that might be the problem, and I
might have a trick to overcome it.