aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ralloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ralloc.c b/src/ralloc.c
index 6c52b83958e..61fa9d4d68d 100644
--- a/src/ralloc.c
+++ b/src/ralloc.c
@@ -109,8 +109,9 @@ static int extra_bytes;
109/* Macros for rounding. Note that rounding to any value is possible 109/* Macros for rounding. Note that rounding to any value is possible
110 by changing the definition of PAGE. */ 110 by changing the definition of PAGE. */
111#define PAGE (getpagesize ()) 111#define PAGE (getpagesize ())
112#define ALIGNED(addr) (((unsigned int) (addr) & (page_size - 1)) == 0) 112#define ALIGNED(addr) (((unsigned long int) (addr) & (page_size - 1)) == 0)
113#define ROUNDUP(size) (((unsigned int) (size) + page_size - 1) & ~(page_size - 1)) 113#define ROUNDUP(size) (((unsigned long int) (size) + page_size - 1) \
114 & ~(page_size - 1))
114#define ROUND_TO_PAGE(addr) (addr & (~(page_size - 1))) 115#define ROUND_TO_PAGE(addr) (addr & (~(page_size - 1)))
115 116
116/* Functions to get and return memory from the system. */ 117/* Functions to get and return memory from the system. */