Source-Changes archive

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

Re: CVS commit: src/sys/sys



On Fri, Nov 14, 2003 at 08:15:31PM +0900, Izumi Tsutsui wrote:
> In article <20031114090633.J4919%snowdrop.l8s.co.uk@localhost>
> david%l8s.co.uk@localhost wrote:
> 
> > Because the code needs to look at the netbsd disklabel - which is defined
> > (apart from its size) in sys/disklabel.h.
> 
> But refering MAXPARTITIONS is completely wrong way to fix the problem.
> Probably Making symlinks to machine/disklabel.h under
> src/tools/compat/obj.*/include/ dir for building host tool
> is right way.

No - the alternative is to check for _MACHINE_DISKLABEL_H
You may (as in this case) have included the correct <arch>/disklabel.h.

sys/disklabel could be in src/tools/compat/sys - but you still need to
stop in going after machine/* since you don't know 'machine'.

I used MAXPARTITIONS because that is the value that sys/disklabel.h
needs from machine/disklabel.h

        David

-- 
David Laight: david%l8s.co.uk@localhost



Home | Main Index | Thread Index | Old Index