Commit dc46505a by Bruce Korb Committed by Bruce Korb

PAGESIZE is not portable

From-SVN: r36166
parent a3bcdaf9
......@@ -2,6 +2,7 @@
* gcc/fixinc/fixincl.c(load_file): always read header files
with sizes that are a multiple of the page size.
& use libiberty's getpagesize for determining that.
2000-09-05 Alexandre Oliva <aoliva@redhat.com>
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment