--- a/src/util.c +++ b/src/util.c @@ -35,6 +35,12 @@ #include #include #include + +/* glibc's stat.h has it but musl's does not. */ +#ifndef ACCESSPERMS +#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) +#endif + #include #include "cpu-x.h" #include "ipc.h"