fix compilation with musl libc

the HZ define is not exposed by musl libc.
This commit is contained in:
Natanael Copa authored and Justin Coyne committed 2018-11-30 22:33:49 -06:00
1 parent ad47dc3b49
commit cd07923dd2
1 file changed
+4
+4
View File
@@ -46,6 +46,10 @@
#define PROC_PARTITIONS PROC_FS_ROOT "partitions"
#define PROC_DISKSTATS PROC_FS_ROOT "diskstats"
#ifndef HZ
#define HZ 100
#endif
/*
* /proc/self/stat fields:
* 1 - pid