Bug 1480315 - Fix coredump caused by getenv. r=glandium
authorChangqing Li <changqing.li@windriver.com>
Wed, 01 Aug 2018 20:49:00 +0300
changeset 429739 0c617268ad37
parent 429738 bb6b15672ed7
child 429740 97465ceca62c
push id105982
push usernerli@mozilla.com
push dateThu, 02 Aug 2018 08:10:05 +0000
treeherdermozilla-inbound@0c617268ad37 [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
 {