From: Po Lu Date: Mon, 18 Sep 2023 06:14:20 +0000 (+0800) Subject: Correct build on systems without PAGE_MASK X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b331bf6d8a21ef3ac7e70d3f4a937e4256178d55;p=emacs.git Correct build on systems without PAGE_MASK * exec/exec.c (write_load_command) : Uniformly define even if !HAVE_GETPAGESIZE. --- 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;