mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
05f6b3701b
commit
e23e519586
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user