fix_kfreebsd_build
authorDebian/Kubuntu Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Thu, 31 Mar 2016 13:38:43 +0000 (15:38 +0200)
committerMaximiliano Curia <maxy@debian.org>
Thu, 17 Jan 2019 23:29:50 +0000 (23:29 +0000)
===================================================================

Gbp-Pq: Name fix_kfreebsd_build

src/widgets/kpropertiesdialog.cpp

index 94f2a72dd84966672d4850efc6748c5259561891..b80ff2c70aa917d51accfbb21929ba36b9e0b01b 100644 (file)
 extern "C" {
 #  include <errno.h>
 #  include <sys/xattr.h>
+#  if defined(Q_OS_FREEBSD) || defined(__FreeBSD_kernel__)
+#     include <sys/vfs.h>
+#     include <sys/mount.h>
+#  endif
 }
 #endif
 
@@ -1955,7 +1959,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