summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-21 11:41:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-21 11:41:16 +0000
commitd1d737ae5751f07a55c80a6761fa4f126e7d6f1f (patch)
tree2cdbe89a6cd3106cbf3e341512bb07daaa42708c
parent1a2997b299151e202ca88082161e86ec688d883b (diff)
* gc.c: needs malloc.h if malloc_usable_size() is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--gc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 9963cde..b8eeed2 100644
--- a/gc.c
+++ b/gc.c
@@ -39,6 +39,8 @@
# ifdef _WIN32
# define malloc_usable_size(a) _msize(a)
# endif
+#else
+# include <malloc.h>
#endif
#if /* is ASAN enabled? */ \