mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
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 */
|
#else /* HAVE_GETPAGESIZE */
|
||||||
if (!pagesize)
|
if (!pagesize)
|
||||||
pagesize = sysconf (_SC_PAGESIZE);
|
pagesize = sysconf (_SC_PAGESIZE);
|
||||||
|
#endif /* HAVE_GETPAGESIZE */
|
||||||
|
|
||||||
#define PAGE_MASK (~(pagesize - 1))
|
#define PAGE_MASK (~(pagesize - 1))
|
||||||
#define PAGE_SIZE (pagesize)
|
#define PAGE_SIZE (pagesize)
|
||||||
#endif /* HAVE_GETPAGESIZE */
|
|
||||||
#endif /* PAGE_MASK */
|
#endif /* PAGE_MASK */
|
||||||
|
|
||||||
start = header->p_vaddr & PAGE_MASK;
|
start = header->p_vaddr & PAGE_MASK;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue