Skip to content

Commit 5281e69

Browse files
committed
Add unistd.h for sbrk
1 parent 5165db3 commit 5281e69

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

erts/configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21733,6 +21733,7 @@ else case e in #(
2173321733
/* end confdefs.h. */
2173421734

2173521735
#include <stdlib.h>
21736+
#include <unistd.h>
2173621737
#ifdef HAVE_MALLOC_H
2173721738
# include <malloc.h>
2173821739
#endif

erts/configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,6 +2443,7 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use],
24432443
erts_cv___after_morecore_hook_can_track_malloc,
24442444
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
24452445
#include <stdlib.h>
2446+
#include <unistd.h>
24462447
#ifdef HAVE_MALLOC_H
24472448
# include <malloc.h>
24482449
#endif

0 commit comments

Comments
 (0)