This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: patch for compiles that don't define "unix"
- To: "J.T. Conklin" <jtc at redback dot com>
- Subject: Re: patch for compiles that don't define "unix"
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Wed, 17 Jan 2001 13:49:46 +0200 (IST)
- cc: Fernando Nasser <fnasser at redhat dot com>, matthew green <mrg at cygnus dot com>, gdb-patches at sources dot redhat dot com
On 16 Jan 2001, J.T. Conklin wrote:
> But if you take a look at how __unix is used, you'll see that it is
> used to determine whether the host is a "fairly recent" UN*X-ish host.
I agree. DJGPP defines unix and __unix__ for that very reason: in
many programs the code conditioned on these symbols works better with
DJGPP than the other code.
> It's used to determine whether to use sigaction() or signal(), whether
> the host has gettimeofday(), etc. IMO, these are should be replaced
> by specific feature tests.
Yes, definitely.