ports/shells/ast-ksh/files/patch-src_lib_libast_vmalloc_vmpool.c
Cy Schubert c6b0b5112f Resurrect the previous shells/ksh93 as shells/ast-ksh, a ksh93 port
that the maintainer wishes to use to create a shared library for use
with other applications such as CDE. It is based on ksh93v (2014-12-24)
and is incompatible with the direction that att/ast is taking the
official ksh93 implementation.

PR:		237332
Requested by:	maintainer (saper@saper.info)
2019-06-01 18:32:40 +00:00

20 lines
640 B
C

--- src/lib/libast/vmalloc/vmpool.c.orig 2016-02-28 17:09:23 UTC
+++ src/lib/libast/vmalloc/vmpool.c
@@ -47,7 +47,7 @@ typedef struct _vmpool_s
Pool_t* free; /* list of free blocks */
} Vmpool_t;
-#define POOLSIZE(sz) ROUND(ROUND((sz), sizeof(Pool_t)), ALIGN)
+#define POOLSIZE(sz) ROUND(ROUND((sz), sizeof(Pool_t)), MEM_ALIGN)
#ifdef DEBUG
static int N_pool; /* counter for Vmpool calls */
@@ -206,7 +206,7 @@ static int poolstat(Vmalloc_t* vm, Vmsta
if(pool->size <= 0 )
return -1;
- size = ROUND(pool->size, ALIGN);
+ size = ROUND(pool->size, MEM_ALIGN);
for(pl = pool->free; pl; pl = pl->next )
st->n_free += 1;