From b331bf6d8a21ef3ac7e70d3f4a937e4256178d55 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 18 Sep 2023 14:14:20 +0800 Subject: [PATCH] Correct build on systems without PAGE_MASK * exec/exec.c (write_load_command) : Uniformly define even if !HAVE_GETPAGESIZE. --- exec/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2