Bug 1480315 - Fix coredump caused by getenv. r=glandium
authorChangqing Li <changqing.li@windriver.com>
Wed, 01 Aug 2018 20:49:00 +0300
changeset 429855 0c617268ad37
parent 429854 bb6b15672ed7
child 429856 97465ceca62c
push id34375
push usernbeleuzu@mozilla.com
push dateThu, 02 Aug 2018 22:28:56 +0000
treeherdermozilla-central@b1c100e2b29a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1480315
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1480315 - Fix coredump caused by getenv. r=glandium
mozglue/misc/TimeStamp.cpp
--- a/mozglue/misc/TimeStamp.cpp
+++ b/mozglue/misc/TimeStamp.cpp
@@ -6,16 +6,17 @@
 
 /*
  * Implementation of the OS-independent methods of the TimeStamp class
  */
 
 #include "mozilla/TimeStamp.h"
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 namespace mozilla {
 
 /**
  * Wrapper class used to initialize static data used by the TimeStamp class
  */
 struct TimeStampInitialization
 {