aports/community/k3b/0001-Disable-glibc-specific-feature.patch
2021-10-18 17:10:06 +02:00

32 lines
1.1 KiB
Diff

diff --git a/src/k3bsystemproblemdialog.cpp b/src/k3bsystemproblemdialog.cpp
index 3881eba38..2b818a85c 100644
--- a/src/k3bsystemproblemdialog.cpp
+++ b/src/k3bsystemproblemdialog.cpp
@@ -49,7 +49,7 @@
#include <langinfo.h>
#endif
-#ifndef Q_OS_WIN32
+#if (defined(Q_OS_LINUX) && defined(__GLIBC__)) || defined(Q_OS_FREEBSD)
#include <fstab.h>
#endif
#include <unistd.h>
@@ -386,7 +386,7 @@ void K3b::SystemProblemDialog::checkSystem(QWidget* parent, NotificationLevel le
dvd_r_dl = true;
}
-#ifndef Q_OS_WIN32
+#if (defined(Q_OS_LINUX) && defined(__GLIBC__)) || defined(Q_OS_FREEBSD)
// check automounted devices
QList<K3b::Device::Device*> automountedDevices = checkForAutomounting();
for( QList<K3b::Device::Device *>::const_iterator it = automountedDevices.constBegin();
@@ -673,7 +673,7 @@ int K3b::SystemProblemDialog::dmaActivated( K3b::Device::Device* dev )
}
-#ifndef Q_OS_WIN32
+#if (defined(Q_OS_LINUX) && defined(__GLIBC__)) || defined(Q_OS_FREEBSD)
QList<K3b::Device::Device*> K3b::SystemProblemDialog::checkForAutomounting()
{
QList<K3b::Device::Device *> l;