Bug 1176266: In TimeStamp_posix.cpp, check for XP_LINUX instead of LINUX, and add missing #include, to allow strrchr usage. r=BenWa

Landing on a CLOSED TREE with RyanVM's permission.
This commit is contained in:
Daniel Holbert 2015-06-19 10:39:20 -07:00
parent 05f6b3701b
commit e23e519586

View File

@ -16,6 +16,7 @@
#include <sys/syscall.h>
#include <time.h>
#include <unistd.h>
#include <string.h>
#if defined(__DragonFly__) || defined(__FreeBSD__) \
|| defined(__NetBSD__) || defined(__OpenBSD__)
@ -205,7 +206,7 @@ TimeStamp::Now(bool aHighResolution)
return TimeStamp(ClockTimeNs());
}
#if defined(LINUX) || defined(ANDROID)
#if defined(XP_LINUX) || defined(ANDROID)
// Calculates the amount of jiffies that have elapsed since boot and up to the
// starttime value of a specific process as found in its /proc/*/stat file.