Description: 修复 cellmalloc.c 中 inline 函数未导出外部定义导致链接失败的问题
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-08-27

--- aprx-2.9.1.orig/cellmalloc.c
+++ aprx-2.9.1/cellmalloc.c
@@ -194,7 +194,7 @@ cellarena_t *cellinit( const char *arena
 }
 
 
-inline void *cellhead_to_clientptr(struct cellhead *ch)
+static inline void *cellhead_to_clientptr(struct cellhead *ch)
 {
 	char *p = (char*)ch;
 #if CELLHEAD_DEBUG == 1
@@ -203,7 +203,7 @@ inline void *cellhead_to_clientptr(struc
 	return p;
 }
 
-inline struct cellhead *clientptr_to_cellhead(void *v)
+static inline struct cellhead *clientptr_to_cellhead(void *v)
 {
 #if CELLHEAD_DEBUG == 1
 	struct cellhead *ch = (struct cellhead *)(((char*)v) - sizeof(void*));
