void-packages/srcpkgs/filelight/patches/musl.patch

68 lines
1.5 KiB
Diff

--- a/src/radialMap/sincos.h 2018-05-06 06:10:38.000000000 +0200
+++ b/src/radialMap/sincos.h 2018-05-06 06:10:38.000000000 +0200
@@ -21,10 +21,10 @@
#ifndef SINCOS_H
#define SINCOS_H
-
+#define _GNU_SOURCE
#include <math.h>
-#if !defined(__GLIBC__) || (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)
+#if (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)
#include <qmath.h>
--- a/src/radialMap/sincos.h 2018-05-25 01:30:46.775385798 +0200
+++ b/src/radialMap/sincos.h 2018-05-25 01:30:46.775385798 +0200
@@ -23,23 +23,4 @@
#define SINCOS_H
#define _GNU_SOURCE
#include <math.h>
-
-#if (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)
-
-#include <qmath.h>
-
-void
-sincos(double angleRadians, double *Sin, double *Cos);
-
-#ifdef SINCOS_H_IMPLEMENTATION
-void
-sincos(double angleRadians, double *Sin, double *Cos)
-{
- *Sin = qSin(angleRadians);
- *Cos = qCos(angleRadians);
-}
-#endif
-
-#endif
-
#endif
--- a/src/posixWalker.cpp 2022-05-09 04:52:35.000000000 +0200
+++ - 2022-05-15 17:20:54.296063960 +0200
@@ -3,6 +3,10 @@
#include "posixWalker.h"
+#ifndef S_BLKSIZE
+#define S_BLKSIZE 512
+#endif
+
static void outputError(const QByteArray &path)
{
/// show error message that stat or opendir may give
--- a/autotests/directoryIteratorTest.cpp 2022-05-09 04:52:35.000000000 +0200
+++ - 2022-05-15 17:21:05.992082135 +0200
@@ -8,6 +8,10 @@
#include "directoryIterator.h"
#include "test-config.h"
+#ifndef S_BLKSIZE
+#define S_BLKSIZE 512
+#endif
+
class DirectoryIteratorTest : public QObject
{
Q_OBJECT