From: Debian/Kubuntu Qt/KDE Maintainers Date: Thu, 31 Mar 2016 13:38:43 +0000 (+0200) Subject: fix_kfreebsd_build X-Git-Tag: archive/raspbian/6.6.0-1+rpi1~1^2^2^2^2^2^2^2^2^2^2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=02352254b0194eb7fbe62e48c36999034e3908fd;p=kf6-kio.git fix_kfreebsd_build =================================================================== Gbp-Pq: Name fix_kfreebsd_build --- diff --git a/src/widgets/kpropertiesdialog.cpp b/src/widgets/kpropertiesdialog.cpp index 8c23d5d..a7c52d5 100644 --- a/src/widgets/kpropertiesdialog.cpp +++ b/src/widgets/kpropertiesdialog.cpp @@ -69,6 +69,10 @@ extern "C" { # include # include +# if defined(Q_OS_FREEBSD) || defined(__FreeBSD_kernel__) +# include +# include +# endif } #endif @@ -2059,7 +2063,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); #elif defined Q_OS_MACOS