1 --- src/3rdparty/chromium/base/process/internal_linux.h.orig 2021-12-15 16:12:54 UTC 2 +++ src/3rdparty/chromium/base/process/internal_linux.h 3 @@ -18,6 +18,8 @@ 4 #include "base/strings/string_number_conversions.h" 5 #include "base/threading/platform_thread.h" 6 7 +#include <unistd.h> /* pid_t */ 8 + 9 namespace base { 10 11 class Time; 12 @@ -59,6 +61,14 @@ enum ProcStatsFields { 13 // If the ordering ever changes, carefully review functions that use these 14 // values. 15 enum ProcStatsFields { 16 +#if defined(OS_BSD) 17 + VM_COMM = 0, // Command name. 18 + VM_PPID = 2, // Parent process id. 19 + VM_PGRP = 3, // Process group id. 20 + VM_STARTTIME = 7, // The process start time. 21 + VM_UTIME = 8, // The user time. 22 + VM_STIME = 9, // The system time 23 +#else 24 VM_COMM = 1, // Filename of executable, without parentheses. 25 VM_STATE = 2, // Letter indicating the state of the process. 26 VM_PPID = 3, // PID of the parent. 27 @@ -71,6 +81,7 @@ enum ProcStatsFields { 28 VM_STARTTIME = 21, // The time the process started in clock ticks. 29 VM_VSIZE = 22, // Virtual memory size in bytes. 30 VM_RSS = 23, // Resident Set Size in pages. 31 +#endif 32 }; 33 34 // Reads the |field_num|th field from |proc_stats|. Returns 0 on failure. 35