void-packages/srcpkgs/CPU-X/patches/define_ACCESSPERMS_on_musl.patch
Lorem 95045873de CPU-X: update to 4.0.1.
- No longer needs libcurl and json-c dependencies
- Add patch to fix i686* build
- Add patch to fix build on musl

Closes: #23090 [via git-merge-pr]
2020-08-31 15:55:06 +02:00

15 lines
309 B
Diff

--- 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"