diff --git a/include/libunwind_i.h b/include/libunwind_i.h index 5ad817f..70a94f1 100644 --- a/include/libunwind_i.h +++ b/include/libunwind_i.h @@ -142,7 +142,7 @@ static inline void mark_as_used(void *v UNUSED) { #endif #define GET_MEMORY(mem, size, type) \ do { \ - mem = malloc(size, type, M_WAITOK) \ + mem = malloc(size, type, M_WAITOK); \ } while (0) #define unwi_find_dynamic_proc_info UNWI_OBJ(find_dynamic_proc_info) diff --git a/mempool.c b/mempool.c index e6422a7..53652ee 100644 --- a/mempool.c +++ b/mempool.c @@ -125,7 +125,7 @@ HIDDEN void mempool_init (struct mempool *pool, size_t obj_size, size_t reserve) { if (pg_size == 0) - pg_size = getpagesize (); + pg_size = PAGE_SIZE; memset (pool, 0, sizeof (*pool));