OSX: removed useless includes
This commit is contained in:
parent
8264c6e2a2
commit
f073450edd
13
osx/cpu.cc
13
osx/cpu.cc
@ -1,17 +1,8 @@
|
||||
#include <mach/vm_statistics.h>
|
||||
#include <mach/processor_info.h>
|
||||
#include <mach/mach_types.h>
|
||||
#include <mach/mach_init.h>
|
||||
#include <mach/mach_host.h>
|
||||
#include <mach/host_info.h>
|
||||
#include <mach/mach_error.h>
|
||||
#include <mach/vm_map.h>
|
||||
#include <mach/mach.h>
|
||||
#include <sys/sysctl.h> // for sysctl
|
||||
#include <sys/types.h> // for integer types
|
||||
|
||||
#include <unistd.h> // usleep()
|
||||
|
||||
#include "cpu.h"
|
||||
|
||||
// OSX or BSD based system, use BSD APIs instead
|
||||
// See: http://www.opensource.apple.com/source/xnu/xnu-201/osfmk/mach/host_info.h
|
||||
// and: http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h> // getloadavg()
|
||||
|
||||
#include "load.h"
|
||||
#include "../luts.h"
|
||||
|
||||
std::string load_string( bool use_colors = false ) {
|
||||
|
@ -1,18 +1,9 @@
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
#include <mach/vm_statistics.h>
|
||||
#include <mach/processor_info.h>
|
||||
#include <mach/mach_types.h>
|
||||
#include <mach/mach_init.h>
|
||||
#include <mach/mach_host.h>
|
||||
#include <mach/host_info.h>
|
||||
#include <mach/mach_error.h>
|
||||
#include <mach/vm_map.h>
|
||||
#include <mach/mach.h>
|
||||
#include <sys/sysctl.h> // for sysctl
|
||||
#include <sys/types.h> // for integer types
|
||||
|
||||
#include "memory.h"
|
||||
#include "../luts.h"
|
||||
|
||||
std::string mem_string( bool use_colors ) {
|
||||
|
Loading…
Reference in New Issue
Block a user