From 40a296dae8e823d9801ab6c8b0d1b3976daaa0ea Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Thu, 22 Sep 2016 17:11:07 +0200 Subject: [PATCH] k3b: unbreak musl --- srcpkgs/k3b/patches/musl-no_fstab_h.patch | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/k3b/patches/musl-no_fstab_h.patch diff --git a/srcpkgs/k3b/patches/musl-no_fstab_h.patch b/srcpkgs/k3b/patches/musl-no_fstab_h.patch new file mode 100644 index 00000000000..3ca4dffd92e --- /dev/null +++ b/srcpkgs/k3b/patches/musl-no_fstab_h.patch @@ -0,0 +1,29 @@ +In musl libc there is no fstab.h + +--- src/k3bsystemproblemdialog.cpp 2014-11-04 19:37:31.000000000 +0100 ++++ src/k3bsystemproblemdialog.cpp 2016-09-22 17:06:44.365902832 +0200 +@@ -53,7 +53,7 @@ + #include + #endif + +-#ifndef Q_OS_WIN32 ++#if !defined(Q_OS_WIN32) && defined(__GLIBC__) + #include + #endif + #include +@@ -651,6 +651,7 @@ + QList K3b::SystemProblemDialog::checkForAutomounting() + { + QList l; ++#if defined(__GLIBC__) + ::setfsent(); + + struct fstab * mountInfo = 0; +@@ -676,6 +677,7 @@ + } // while mountInfo + + ::endfsent(); ++#endif + return l; + } + #endif