void-packages/srcpkgs/CPU-X/patches/define_ACCESSPERMS_on_musl....

16 lines
309 B
Diff
Raw Normal View History

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