diff options
| author | Ulf Hermann <[email protected]> | 2017-02-15 15:28:38 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2017-02-15 15:32:45 +0100 |
| commit | cb379c4d7859848572c224f7bebd107b02adcfd6 (patch) | |
| tree | 0b75974d35218d57f796574c0507f1b04a4bc430 /libdwfl/linux-proc-maps.c | |
| parent | 29173849c445b178a97e400c071f25629a4f8b9f (diff) | |
Always use the same method to query the system page size
This makes it easier to write a replacement for it on systems where
sysconf(3) doesn't exist.
Signed-off-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'libdwfl/linux-proc-maps.c')
| -rw-r--r-- | libdwfl/linux-proc-maps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdwfl/linux-proc-maps.c b/libdwfl/linux-proc-maps.c index 4ae1e74a..094dd53d 100644 --- a/libdwfl/linux-proc-maps.c +++ b/libdwfl/linux-proc-maps.c @@ -418,7 +418,7 @@ dwfl_linux_proc_find_elf (Dwfl_Module *mod __attribute__ ((unused)), if (fd < 0) goto detach; - *elfp = elf_from_remote_memory (base, getpagesize (), NULL, + *elfp = elf_from_remote_memory (base, sysconf (_SC_PAGESIZE), NULL, &read_proc_memory, &fd); close (fd); |
