Message ID | 20220819152021.26298-1-tomi.belan@gmail.com |
---|---|
State | New |
Headers | show |
Series | [pseudo] ports/linux: Remove build dependency on libattr | expand |
diff --git a/ports/linux/xattr/portdefs.h b/ports/linux/xattr/portdefs.h index 068d39a..beab7d0 100644 --- a/ports/linux/xattr/portdefs.h +++ b/ports/linux/xattr/portdefs.h @@ -3,5 +3,8 @@ * */ #include <sys/xattr.h> -#include <attr/attributes.h> #include <stdint.h> + +#ifndef ENOATTR +#define ENOATTR ENODATA +#endif
Apparently <attr/attributes.h> was only included in order to get ENOATTR. pseudo does not use any other functions or structs from it. More about ENOATTR: https://git.savannah.nongnu.org/cgit/attr.git/tree/include/attributes.h https://github.com/rust-lang/libc/issues/1356 https://github.com/golang/go/issues/753 Signed-off-by: Tomi Belan <tomi.belan@gmail.com> --- Hi. I'd like to contribute this patch to 'pseudo'. I'm not familiar with git-send-email so I hope I sent it to the right place and it looks good. Cheers! ports/linux/xattr/portdefs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)