From dc46505a003f5f058fa9a468d49442e009944ad7 Mon Sep 17 00:00:00 2001 From: Bruce Korb Date: Tue, 5 Sep 2000 22:26:16 +0000 Subject: PAGESIZE is not portable From-SVN: r36166 --- gcc/fixinc/fixincl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/fixinc') diff --git a/gcc/fixinc/fixincl.c b/gcc/fixinc/fixincl.c index ad5d23a..bd8e7af 100644 --- a/gcc/fixinc/fixincl.c +++ b/gcc/fixinc/fixincl.c @@ -359,7 +359,7 @@ load_file ( fname ) /* IF the file size is a multiple of the page size, THEN sometimes you will seg fault trying to access a trailing byte */ - if ((stbf.st_size & (PAGESIZE-1)) == 0) + if ((stbf.st_size & (getpagesize()-1)) == 0) res = (char*)BAD_ADDR; else res = (char*)mmap ((void*)NULL, data_map_size, PROT_READ, -- cgit v1.1