Correct build on systems without PAGE_MASK
* exec/exec.c (write_load_command) <PAGE_MASK, PAGE_SIZE>: Uniformly define even if !HAVE_GETPAGESIZE.
This commit is contained in:
parent
cd69120731
commit
b331bf6d8a
1 changed files with 1 additions and 1 deletions
|
@ -309,10 +309,10 @@ write_load_command (program_header *header, bool use_alternate,
|
|||
#else /* HAVE_GETPAGESIZE */
|
||||
if (!pagesize)
|
||||
pagesize = sysconf (_SC_PAGESIZE);
|
||||
#endif /* HAVE_GETPAGESIZE */
|
||||
|
||||
#define PAGE_MASK (~(pagesize - 1))
|
||||
#define PAGE_SIZE (pagesize)
|
||||
#endif /* HAVE_GETPAGESIZE */
|
||||
#endif /* PAGE_MASK */
|
||||
|
||||
start = header->p_vaddr & PAGE_MASK;
|
||||
|
|
Loading…
Add table
Reference in a new issue