[Bug 49829] file.c:237:37: error: 'EXTATTR_NAMESPACE_USER' undeclared on FreeBSD

WineHQ Bugzilla wine-bugs at winehq.org
Wed Oct 14 14:57:34 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=49829

Gerald Pfeifer <gerald at pfeifer.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|file.c:237:37: error:       |file.c:237:37: error:
                   |'EXTATTR_NAMESPACE_USER'    |'EXTATTR_NAMESPACE_USER'
                   |undeclared building with    |undeclared on FreeBSD
                   |GCC 9 and FreeBSD           |

--- Comment #3 from Gerald Pfeifer <gerald at pfeifer.com> ---
It turns out this is not specific to GCC, but to building on FreeBSD.

The following addresses part of the issue:

diff -u unix/file.c{.orig,}
--- unix/file.c.orig    2020-10-14 19:03:39.476740000 +0000
+++ unix/file.c    2020-10-14 19:49:03.226593000 +0000
@@ -112,6 +112,9 @@
 #elif defined(HAVE_SYS_XATTR_H)
 #include <sys/xattr.h>
 #endif
+#ifdef HAVE_SYS_EXTATTR_H
+#include <sys/extattr.h>
+#endif
 #include <time.h>
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list