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

Re: working xfree86 4.1.0?



Richard Zidlicky <Richard.Zidlicky@stud.informatik.uni-erlangen.de> writes:

|> On Mon, Jan 21, 2002 at 07:51:21PM +0100, Andreas Schwab wrote:
|> 
|> > 
|> > |> I got 1 compile problem, asm/ptrace.h (kernel) got included somehow
|> > |> in m68klinux-nat.c and the PT_* defs conflicted with sys/reg.h (glibc). 
|> > |> I fixed it by hiding the ptrace stuff inside __KERNEL__ but imho glibc 
|> > |> sys/reg.h definition looks pretty strange.
|> > 
|> > What's strange with it?
|> 
|> enum
|> {
|>   PT_D1 = 0,
|> #define PT_D1 PT_D1
|> ...
|> 
|> what's the advantage of such code compared to asm/ptrace.h?

For one, asm/ptrace.h is verboten (it's a kernel header), and with the
style above you get both #ifdef and gdb happy.

Btw, could you please find out where <asm/ptrace.h> is included?

Thanks, Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



Reply to: