<table><tr><td style="">rominf added inline comments.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D11204">View Revision</a></tr></table><br /><div><strong>INLINE COMMENTS</strong><div><div style="margin: 6px 0 12px 0;"><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D11204#inline-58100">View Inline</a><span style="color: #4b4d51; font-weight: bold;">kossebau</span> wrote in <span style="color: #4b4d51; font-weight: bold;">file_unix.cpp:40</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">This unconditional include sadly breaks the build at least on FreeBSD (see <a href="https://build.kde.org/view/Frameworks/job/Frameworks%20kio%20kf5-qt5%20FreeBSDQt5.9/164/console" class="remarkup-link" target="_blank" rel="noreferrer">https://build.kde.org/view/Frameworks/job/Frameworks%20kio%20kf5-qt5%20FreeBSDQt5.9/164/console</a> ) and other systems where this header is not part of the libc (?) headers.</p>
<p style="padding: 0; margin: 8px;">So this needs to get some condition checking before using it. Compare other code doing that:<br />
<a href="https://lxr.kde.org/search?_filestring=&_string=xattr.h&_casesensitive=1" class="remarkup-link" target="_blank" rel="noreferrer">https://lxr.kde.org/search?_filestring=&_string=xattr.h&_casesensitive=1</a></p>
<p style="padding: 0; margin: 8px;">While the xattr.h is already checked for in KIO in the FindACL.cmake file, an explicite check like</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">check_include_files(sys/xattr.h HAVE_SYS_XATTR_H)</pre></div>
<p style="padding: 0; margin: 8px;">and passing HAVE_SYS_XATTR_H via config-kioslave-file.h.cmake into file_unix.cpp and checking the condition additionally to or instead of Q_OS_LINUX for the new code should solve this issue properly.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">I'm sorry for breaking the build. Here is the fix: <a href="https://phabricator.kde.org/D11716" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D11716</a></p></div></div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11204">https://phabricator.kde.org/D11204</a></div></div><br /><div><strong>To: </strong>rominf, Dolphin, Frameworks, dfaure<br /><strong>Cc: </strong>kossebau, dfaure, markg, elvisangelaccio, ltoscano, anthonyfieroni, broulik, Frameworks, Dolphin, michaelh, ngraham<br /></div>