Include cstdlib before using ::malloc and posix_memalign
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Feb 2017 21:59:08 +0000 (21:59 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Feb 2017 21:59:08 +0000 (21:59 +0000)
https://bugs.webkit.org/show_bug.cgi?id=167800

Patch by Ting-Wei Lan <lantw44@gmail.com> on 2017-02-03
Reviewed by Geoffrey Garen.

* bmalloc/DebugHeap.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@211651 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/bmalloc/ChangeLog
Source/bmalloc/bmalloc/DebugHeap.cpp

index 548f7d8..40ee518 100644 (file)
@@ -1,3 +1,12 @@
+2017-02-03  Ting-Wei Lan  <lantw44@gmail.com>
+
+        Include cstdlib before using ::malloc and posix_memalign
+        https://bugs.webkit.org/show_bug.cgi?id=167800
+
+        Reviewed by Geoffrey Garen.
+
+        * bmalloc/DebugHeap.cpp:
+
 2017-02-01  Andreas Kling  <akling@apple.com>
 
         Implement the alwaysRunsAtBackgroundPriority WK2 setting using thread QoS.
index 320d814..6a0f07c 100644 (file)
@@ -26,6 +26,7 @@
 #include "DebugHeap.h"
 #include "BAssert.h"
 #include "BPlatform.h"
+#include <cstdlib>
 #include <thread>
 
 namespace bmalloc {