5 Star 1 Fork 3

src-openEuler / libumem

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-correct-the-parameter-ordering-for-the-memalign-hook.patch 729 Bytes
一键复制 编辑 原始数据 按行查看 历史
Chunsheng Luo 提交于 2022-12-29 14:41 . Fix build error in glibc 2.34
From a16c8c3c7a49a83b0f61606dcad7bcb201342dff Mon Sep 17 00:00:00 2001
From: wez <wez@1665872d-e22b-0410-9e5d-a57ad4215e6d>
Date: Tue, 6 Apr 2010 00:45:32 +0000
Subject: [PATCH] correct the parameter ordering for the memalign hook on glibc
systems
---
malloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/malloc.c b/malloc.c
index 7eec207..1ad008e 100644
--- a/malloc.c
+++ b/malloc.c
@@ -157,7 +157,7 @@ calloc(size_t nelem, size_t elsize)
*/
#ifdef __GLIBC__
-static void *umem_memalign_hook(size_t size_arg, size_t align, const void *caller)
+static void *umem_memalign_hook(size_t align, size_t size_arg, const void *caller)
#else
void *
memalign(size_t align, size_t size_arg)
--
2.27.0
1
https://gitee.com/src-openeuler/libumem.git
git@gitee.com:src-openeuler/libumem.git
src-openeuler
libumem
libumem
master

搜索帮助