From d6aeb7616560cc643e6e0140a97ec8817967867d Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Tue, 6 Mar 2018 14:28:01 +0000 Subject: [PATCH] use _ALIGN() which is uhm a bit OpenBSD-specific, but it means we don't need to use sys/param.h at all, guess which one i believe is greater namespace polution ok otto --- src/lib/libc/stdlib/malloc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c index 9843cab8..90c49aa5 100644 --- a/src/lib/libc/stdlib/malloc.c +++ b/src/lib/libc/stdlib/malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.c,v 1.246 2018/03/05 01:32:32 deraadt Exp $ */ +/* $OpenBSD: malloc.c,v 1.247 2018/03/06 14:28:01 deraadt Exp $ */ /* * Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek * Copyright (c) 2012 Matthew Dempsky @@ -26,7 +26,6 @@ /* #define MALLOC_STATS */ #include -#include /* PAGE_SHIFT ALIGN */ #include #include #include @@ -833,7 +832,7 @@ alloc_chunk_info(struct dir_info *d, int bits) size = sizeof(struct chunk_info) + (size - 1) * sizeof(u_short); if (mopts.chunk_canaries) size += count * sizeof(u_short); - size = ALIGN(size); + size = _ALIGN(size); q = MMAP(MALLOC_PAGESIZE); if (q == MAP_FAILED)