diff options
author | Po Lu <luangruo@yahoo.com> | 2023-09-18 14:14:20 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2023-09-18 14:16:40 +0800 |
commit | b331bf6d8a21ef3ac7e70d3f4a937e4256178d55 (patch) | |
tree | f242f085663e154dd0b231283f8bdb263654c012 /exec | |
parent | cd69120731f3407a4ba8c62cc195edaf411134ce (diff) | |
download | emacs-b331bf6d8a21ef3ac7e70d3f4a937e4256178d55.tar.gz |
Correct build on systems without PAGE_MASK
* exec/exec.c (write_load_command) <PAGE_MASK, PAGE_SIZE>:
Uniformly define even if !HAVE_GETPAGESIZE.
Diffstat (limited to 'exec')
-rw-r--r-- | exec/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exec/exec.c b/exec/exec.c index dae05755675..231b5b1c46a 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -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; |