void-packages/srcpkgs/qdirstat/patches/fix-allperms-musl.patch

19 lines
583 B
Diff

ALLPERMS isn't specified in POSIX so musl doesn't define it
diff --git a/src/FileInfo.cpp b/src/FileInfo.cpp
index 5cc198c..197d40c 100644
--- a/src/FileInfo.cpp
+++ b/src/FileInfo.cpp
@@ -24,6 +24,10 @@
#include "Logger.h"
#include "Exception.h"
+#ifndef ALLPERMS
+# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
+#endif
+
// Some filesystems (NTFS seems to be among them) may handle block fragments
// well. Don't report files as "sparse" files if the block size is only a few
// bytes less than the byte size - it may be due to intelligent fragment