diff options
| author | Po Lu | 2023-09-18 14:14:20 +0800 |
|---|---|---|
| committer | Po Lu | 2023-09-18 14:16:40 +0800 |
| commit | b331bf6d8a21ef3ac7e70d3f4a937e4256178d55 (patch) | |
| tree | f242f085663e154dd0b231283f8bdb263654c012 /exec | |
| parent | cd69120731f3407a4ba8c62cc195edaf411134ce (diff) | |
| download | emacs-b331bf6d8a21ef3ac7e70d3f4a937e4256178d55.tar.gz emacs-b331bf6d8a21ef3ac7e70d3f4a937e4256178d55.zip | |
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, | |||
| 309 | #else /* HAVE_GETPAGESIZE */ | 309 | #else /* HAVE_GETPAGESIZE */ |
| 310 | if (!pagesize) | 310 | if (!pagesize) |
| 311 | pagesize = sysconf (_SC_PAGESIZE); | 311 | pagesize = sysconf (_SC_PAGESIZE); |
| 312 | #endif /* HAVE_GETPAGESIZE */ | ||
| 312 | 313 | ||
| 313 | #define PAGE_MASK (~(pagesize - 1)) | 314 | #define PAGE_MASK (~(pagesize - 1)) |
| 314 | #define PAGE_SIZE (pagesize) | 315 | #define PAGE_SIZE (pagesize) |
| 315 | #endif /* HAVE_GETPAGESIZE */ | ||
| 316 | #endif /* PAGE_MASK */ | 316 | #endif /* PAGE_MASK */ |
| 317 | 317 | ||
| 318 | start = header->p_vaddr & PAGE_MASK; | 318 | start = header->p_vaddr & PAGE_MASK; |