]> git.eshelyaron.com Git - emacs.git/commitdiff
Correct build on systems without PAGE_MASK
authorPo Lu <luangruo@yahoo.com>
Mon, 18 Sep 2023 06:14:20 +0000 (14:14 +0800)
committerPo 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

index dae0575567554bec9e7267fd4167a44dd30ff566..231b5b1c46a1c72591a3983d9da5f600e4fc7229 100644 (file)
@@ -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;