Index: base/process/process_metrics_posix.cc |
diff --git a/base/process/process_metrics_posix.cc b/base/process/process_metrics_posix.cc |
index 3f1bcb63e10595471028816539d9e16881e2cf52..29fb591e22846675cd859f604ca1bb1fcbfb9021 100644 |
--- a/base/process/process_metrics_posix.cc |
+++ b/base/process/process_metrics_posix.cc |
@@ -4,16 +4,19 @@ |
#include "base/process/process_metrics.h" |
+#include <stddef.h> |
+#include <stdint.h> |
#include <sys/resource.h> |
#include <sys/time.h> |
#include <unistd.h> |
#include "base/logging.h" |
+#include "build/build_config.h" |
namespace base { |
-int64 TimeValToMicroseconds(const struct timeval& tv) { |
- int64 ret = tv.tv_sec; // Avoid (int * int) integer overflow. |
+int64_t TimeValToMicroseconds(const struct timeval& tv) { |
+ int64_t ret = tv.tv_sec; // Avoid (int * int) integer overflow. |
ret *= Time::kMicrosecondsPerSecond; |
ret += tv.tv_usec; |
return ret; |