fix compilation with musl libc

the HZ define is not exposed by musl libc.
This commit is contained in:
Natanael Copa 2016-03-14 14:14:30 +00:00 committed by Justin Coyne
parent ad47dc3b49
commit cd07923dd2
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@
#define PROC_PARTITIONS PROC_FS_ROOT "partitions" #define PROC_PARTITIONS PROC_FS_ROOT "partitions"
#define PROC_DISKSTATS PROC_FS_ROOT "diskstats" #define PROC_DISKSTATS PROC_FS_ROOT "diskstats"
#ifndef HZ
#define HZ 100
#endif
/* /*
* /proc/self/stat fields: * /proc/self/stat fields:
* 1 - pid * 1 - pid