Bug 1402647 - Add missing stdlib.h header for system allocator. r=njn
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 26 Sep 2017 06:58:05 +0900
changeset 670398 b29d40633a3a37da2270d01fe730e7afd50fd0b7
parent 670397 61af19cbe6bf7fccd7cd7a1535caf857443d323e
child 670399 4735518e975a1853f08a516f5baa97b13a10d114
push id81613
push userbmo:nchevobbe@mozilla.com
push dateTue, 26 Sep 2017 10:17:11 +0000
reviewersnjn
bugs1402647
milestone58.0a1
Bug 1402647 - Add missing stdlib.h header for system allocator. r=njn
memory/build/fallback.cpp
--- a/memory/build/fallback.cpp
+++ b/memory/build/fallback.cpp
@@ -1,16 +1,17 @@
 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "mozmemory.h"
 #include "mozjemalloc.h"
+#include <stdlib.h>
 
 struct SystemMalloc {
 #define MALLOC_DECL(name, return_type, ...) \
   static inline return_type \
   name(ARGS_HELPER(TYPED_ARGS, ##__VA_ARGS__)) \
   { \
     return ::name(ARGS_HELPER(ARGS, ##__VA_ARGS__)); \
   }