aboutsummaryrefslogtreecommitdiffstats
path: root/community/filelight/0001-Fix-musl-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/filelight/0001-Fix-musl-build.patch')
-rw-r--r--community/filelight/0001-Fix-musl-build.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/community/filelight/0001-Fix-musl-build.patch b/community/filelight/0001-Fix-musl-build.patch
new file mode 100644
index 00000000000..e5527ff1c32
--- /dev/null
+++ b/community/filelight/0001-Fix-musl-build.patch
@@ -0,0 +1,30 @@
+diff --git a/autotests/directoryIteratorTest.cpp b/autotests/directoryIteratorTest.cpp
+index 4f10371..b0b2847 100644
+--- a/autotests/directoryIteratorTest.cpp
++++ b/autotests/directoryIteratorTest.cpp
+@@ -1,6 +1,10 @@
+ // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
+ // SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org>
+
++#ifndef S_BLKSIZE
++#define S_BLKSIZE 512
++#endif
++
+ #include <QDebug>
+ #include <QFileInfo>
+ #include <QTest>
+diff --git a/src/posixWalker.cpp b/src/posixWalker.cpp
+index 246a04a..5adfe25 100644
+--- a/src/posixWalker.cpp
++++ b/src/posixWalker.cpp
+@@ -1,6 +1,10 @@
+ // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
+ // SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org>
+
++#ifndef S_BLKSIZE
++#define S_BLKSIZE 512
++#endif
++
+ #include "posixWalker.h"
+
+ static void outputError(const QByteArray &path)