2022-12-14 09:07:19 +00:00
|
|
|
From: Florian Weimer <fweimer@redhat.com>
|
|
|
|
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
|
2024-03-07 20:18:10 +00:00
|
|
|
index b395d4e891..432067c52c 100755
|
2022-12-14 09:07:19 +00:00
|
|
|
--- a/erts/configure
|
|
|
|
+++ b/erts/configure
|
2024-03-07 20:18:10 +00:00
|
|
|
@@ -20909,6 +20909,9 @@ else $as_nop
|
2022-12-14 09:07:19 +00:00
|
|
|
#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
|
2024-03-07 20:18:10 +00:00
|
|
|
index f944657fba..c55c9e5339 100644
|
2022-12-14 09:07:19 +00:00
|
|
|
--- a/erts/configure.ac
|
|
|
|
+++ b/erts/configure.ac
|
2024-03-07 20:18:10 +00:00
|
|
|
@@ -2450,6 +2450,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use],
|
2022-12-14 09:07:19 +00:00
|
|
|
#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)
|