This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: patch for compiles that don't define "unix"



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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]