fix compilation with musl libc
the HZ define is not exposed by musl libc.
This commit is contained in:
parent
ad47dc3b49
commit
cd07923dd2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue