From: almesber@nessie.cs.id.ethz.ch (Werner Almesberger) Subject: Include problems, compiling LILO (was Re: new ps for 0.97 on banjo) Date: 2 Aug 1992 21:12:57 GMT
In article <Aug.1.22.10.04.1992.22121@dumas.rutgers.edu> hedrick@dumas.rutgers.edu (Charles Hedrick) writes:
> 0.97 has moved a bunch of include files that used to be in
> /usr/src/linux/include/sys to /usr/src/linux/include/linux. This causes
> no end of trouble to programs like ps.
Yes, the include problems don't seem to stop :-( linux/types.h should
at least check, whether sys/types.h has already been included and vice
versa.
To compile LILO under 0.97, the following things have to be changed:
In geometry.c:
add
#ifdef _SYS_TYPES_H
#define _LINUX_TYPES_H
#endif
before #include <linux/fs.h>
In common.h:
replace
#include <linux/hdreg.h>
by
#include <linux/genhd.h>
smount.c for the MS-DOS FS needs some changes too. I'll release an
update RSN anyway, so I won't list them here.
- Werner
-- _________________________________________________________________________ / Werner Almesberger, ETH Zuerich, CH almesber@nessie.cs.id.ethz.ch / / IFW A44 Tel. +41 1 254 7213 almesberger@rzvax.ethz.ch / /_BITNET:_ALMESBER@CZHETH5A__HEPNET/CHADNET:_[20579::]57414::ALMESBERGER_/