aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc
diff options
context:
space:
mode:
authorBruce Korb <bkorb@gnu.org>2000-09-05 22:26:16 +0000
committerBruce Korb <korbb@gcc.gnu.org>2000-09-05 22:26:16 +0000
commitdc46505a003f5f058fa9a468d49442e009944ad7 (patch)
treec647973572a7d782894487316bfcc5d252caebf1 /gcc/fixinc
parenta3bcdaf9e9ffafbd6b6ae6d5eed5cb776cffec11 (diff)
downloadgcc-dc46505a003f5f058fa9a468d49442e009944ad7.zip
gcc-dc46505a003f5f058fa9a468d49442e009944ad7.tar.gz
gcc-dc46505a003f5f058fa9a468d49442e009944ad7.tar.bz2
PAGESIZE is not portable
From-SVN: r36166
Diffstat (limited to 'gcc/fixinc')
-rw-r--r--gcc/fixinc/fixincl.c2
1 files changed, 1 insertions, 1 deletions
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,