Skip to content

Commit

Permalink
Add unistd.h for sbrk
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebakken committed Dec 17, 2024
1 parent 5165db3 commit 5281e69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions erts/configure
Original file line number Diff line number Diff line change
Expand Up @@ -21733,6 +21733,7 @@ else case e in #(
/* end confdefs.h. */

#include <stdlib.h>
#include <unistd.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h>
#endif
Expand Down
1 change: 1 addition & 0 deletions erts/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2443,6 +2443,7 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use],
erts_cv___after_morecore_hook_can_track_malloc,
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdlib.h>
#include <unistd.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h>
#endif
Expand Down

0 comments on commit 5281e69

Please sign in to comment.