Re: problem with swap.h

Guest section DW (dwguest@win.tue.nl)
Tue, 29 Sep 1998 14:10:39 +0200 (MET DST)


From owner-linux-kernel-outgoing@vger.rutgers.edu Tue Sep 29 14:03:43 1998
From: "Stephen C. Tweedie" <sct@redhat.com>

On Mon, 28 Sep 1998 11:23:25 +0100, mummert&partner_meskesm@WestLB.de
said:

> It seems to me that there is a problem with swap.h in the latest
> development source trees. My watchdog source includes it (via sys/swap.h)
> and then moans about the missing definition of PAGE_SIZE. Shouldn't swap.h
> include this?

No, the library gives you a function getpagesize() which is the
portable way to access this information.

--Stephen

I think this is the wrong answer.

mummert or partner is not interested in the pagesize at all,
but including <sys/swap.h> leads to compilation errors these
days when PAGE_SIZE is undefined.
In other words, whoever uses <sys/swap.h> must now also
include <sys/page.h> or so.

Unfortunate.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/