From: Debian/Kubuntu Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Date: Thu, 31 Mar 2016 15:38:43 +0200
Subject: fix_kfreebsd_build

===================================================================
---
 src/widgets/kpropertiesdialog.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Index: b/src/widgets/kpropertiesdialog.cpp
===================================================================
--- a/src/widgets/kpropertiesdialog.cpp
+++ b/src/widgets/kpropertiesdialog.cpp
@@ -86,6 +86,10 @@
 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
 
@@ -1938,7 +1942,7 @@
 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
