[OE-core] [PATCH] pseudo: build with recent attr
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Mon Dec 17 13:29:17 UTC 2018
"Burton, Ross" <ross.burton at intel.com> writes:
> | In file included from port_wrappers.c:8:0,
> | from pseudo_wrappers.c:307:
> | ports/linux/xattr/pseudo_wrappers.c: In function ‘shared_getxattr’:
> | ports/linux/xattr/pseudo_wrappers.c:134:11: error: ‘ENOATTR’ undeclared (first use in this function)
> | errno = ENOATTR;
>
> Breaks when building with old xattr.
Yes; defining ENOATTR in <attr/xattr.h> was a mistake, violated POSIX
and causes such problems now... I am tending to rewrite the patch with
something like
-#include <attr/xattr.h>
+#include <sys/xattr.h>
+#include <errno.h>
+#ifndef ENOATTR
+# define ENOATTR ENODATA
+#endif
and I am disussing this with Seebs atm...
Enrico
--
SIGMA Chemnitz GmbH Registergericht: Amtsgericht Chemnitz HRB 1750
Am Erlenwald 13 Geschaeftsfuehrer: Grit Freitag, Frank Pyritz
09128 Chemnitz
More information about the Openembedded-core
mailing list