diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/plugin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/plugin.c b/ld/plugin.c index 3254817..a799ec7 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -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; |