1 Star 0 Fork 21

wk333/erlang

forked from src-openEuler/erlang 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch 1010 Bytes
一键复制 编辑 原始数据 按行查看 历史
wk333 提交于 2023-09-18 10:26 . Update to 25.3.2.6
From: Florian Weimer <[email protected]>
Date: Thu, 24 Nov 2022 11:57:49 +0100
Subject: [PATCH] configure.ac: C99 fix for
ERTS___AFTER_MORECORE_HOOK_CAN_TRACK_MALLOC
#include <unistd.h> for the sbrk function if the header is available.
diff --git a/erts/configure b/erts/configure
index fbdb6baba8..46e882e99a 100755
--- a/erts/configure
+++ b/erts/configure
@@ -20644,6 +20644,9 @@ else $as_nop
#ifdef HAVE_MALLOC_H
# include <malloc.h>
#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#if defined(HAVE_END_SYMBOL)
extern char end;
#elif defined(HAVE__END_SYMBOL)
diff --git a/erts/configure.ac b/erts/configure.ac
index 307be5042d..316345079b 100644
--- a/erts/configure.ac
+++ b/erts/configure.ac
@@ -2436,6 +2436,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use],
#ifdef HAVE_MALLOC_H
# include <malloc.h>
#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#if defined(HAVE_END_SYMBOL)
extern char end;
#elif defined(HAVE__END_SYMBOL)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wk333/erlang.git
[email protected]:wk333/erlang.git
wk333
erlang
erlang
master

搜索帮助