Merge pull request #4 from jcoyne/patch-1

Fix compilation with musl libc
This commit is contained in:
Kostya M 2018-12-02 22:33:16 +03:00 committed by GitHub
commit d88f2121b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -50,6 +50,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

View File

@ -70,7 +70,7 @@ struct sigar_t {
};
#define HAVE_STRERROR_R
#ifndef __USE_XOPEN2K
#if !defined(__USE_XOPEN2K) && defined(__GLIBC__)
/* use gnu version of strerror_r */
#define HAVE_STRERROR_R_GLIBC
#endif