From d3da4efe005c3fc5da6a5e92bd48eb63bc8aa511 Mon Sep 17 00:00:00 2001 From: Debian/Kubuntu Qt/KDE Maintainers Date: Thu, 31 Mar 2016 15:38:43 +0200 Subject: [PATCH] fix_kfreebsd_build =================================================================== Gbp-Pq: Name fix_kfreebsd_build --- src/widgets/kpropertiesdialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/widgets/kpropertiesdialog.cpp b/src/widgets/kpropertiesdialog.cpp index 18c8479..d246b05 100644 --- a/src/widgets/kpropertiesdialog.cpp +++ b/src/widgets/kpropertiesdialog.cpp @@ -81,6 +81,10 @@ extern "C" { # include # include +# if defined(Q_OS_FREEBSD) || defined(__FreeBSD_kernel__) +# include +# include +# endif } #endif @@ -1933,7 +1937,7 @@ KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin(KPropertiesDialog *_pro static bool fileSystemSupportsACL(const QByteArray &path) { bool fileSystemSupportsACLs = false; -#ifdef Q_OS_FREEBSD +#if defined(Q_OS_FREEBSD) || defined(__FreeBSD_kernel__) struct statfs buf; fileSystemSupportsACLs = (statfs(path.data(), &buf) == 0) && (buf.f_flags & MNT_ACLS); #else -- 2.30.2