qdirstat: update ALLPERMS musl fix
This commit is contained in:
parent
db5c3d26ab
commit
61ba6baece
2 changed files with 22 additions and 14 deletions
|
@ -1,18 +1,26 @@
|
|||
ALLPERMS isn't specified in POSIX so musl doesn't define it
|
||||
From d802c86efdb754ad226e0ea5ce55029abb800adb Mon Sep 17 00:00:00 2001
|
||||
From: lemmi <lemmi@nerd2nerd.org>
|
||||
Date: Wed, 22 Sep 2021 10:01:40 +0200
|
||||
Subject: [PATCH] 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"
|
||||
---
|
||||
src/FormatUtil.h | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/FormatUtil.h b/src/FormatUtil.h
|
||||
index dee739e..a7f6a46 100644
|
||||
--- a/src/FormatUtil.h
|
||||
+++ b/src/FormatUtil.h
|
||||
@@ -9,6 +9,9 @@
|
||||
#ifndef FormatUtil_h
|
||||
#define FormatUtil_h
|
||||
|
||||
+#ifndef ALLPERMS
|
||||
+# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
|
||||
+#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
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
--
|
||||
2.33.0
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'qdirstat'
|
||||
pkgname=qdirstat
|
||||
version=1.8
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=qmake
|
||||
hostmakedepends="qt5-qmake qt5-host-tools"
|
||||
makedepends="zlib-devel qt5-devel"
|
||||
|
|
Loading…
Reference in a new issue