mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
Add the missing HAVE_GETPAGESIZE check in get_view
This commit is contained in:
parent
fe9057895e
commit
b677c4562d
@ -529,9 +529,13 @@ get_view (const void *handle, const void **viewp)
|
||||
size += bias;
|
||||
# endif
|
||||
buffer = mmap (NULL, size, PROT_READ, MAP_PRIVATE, input->fd, offset);
|
||||
# if HAVE_GETPAGESIZE
|
||||
if (buffer != MAP_FAILED)
|
||||
buffer += bias;
|
||||
else
|
||||
# else
|
||||
if (buffer == MAP_FAILED)
|
||||
# endif
|
||||
#endif
|
||||
{
|
||||
char *p;
|
||||
|
Loading…
Reference in New Issue
Block a user