projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd69120
)
Correct build on systems without PAGE_MASK
author
Po Lu
<luangruo@yahoo.com>
Mon, 18 Sep 2023 06:14:20 +0000
(14:14 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Mon, 18 Sep 2023 06:16:40 +0000
(14:16 +0800)
* exec/exec.c (write_load_command) <PAGE_MASK, PAGE_SIZE>:
Uniformly define even if !HAVE_GETPAGESIZE.
exec/exec.c
patch
|
blob
|
history
diff --git
a/exec/exec.c
b/exec/exec.c
index dae0575567554bec9e7267fd4167a44dd30ff566..231b5b1c46a1c72591a3983d9da5f600e4fc7229 100644
(file)
--- 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;