Merge pull request #4 from jcoyne/patch-1
Fix compilation with musl libc
This commit is contained in:
commit
d88f2121b8
|
@ -50,6 +50,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
|
||||||
|
|
|
@ -70,7 +70,7 @@ struct sigar_t {
|
||||||
};
|
};
|
||||||
|
|
||||||
#define HAVE_STRERROR_R
|
#define HAVE_STRERROR_R
|
||||||
#ifndef __USE_XOPEN2K
|
#if !defined(__USE_XOPEN2K) && defined(__GLIBC__)
|
||||||
/* use gnu version of strerror_r */
|
/* use gnu version of strerror_r */
|
||||||
#define HAVE_STRERROR_R_GLIBC
|
#define HAVE_STRERROR_R_GLIBC
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue