ports/linux: Remove build dependency on libattr
PATCH 1/1 ports/linux: Remove build dependency on libattr
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 <[email protected]>
---
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(-)
ports/linux/xattr/portdefs.h +4 -1
@@ -3,5 +3,8 @@* */ #include <sys/xattr.h> -#include <attr/attributes.h> #include <stdint.h> + +#ifndef ENOATTR +#define ENOATTR ENODATA +#endif
Signature · 1 line
2.25.1