Skip to contentSkip to conversation

ports/linux: Remove build dependency on libattr

PATCH New Tomi Belan 1 participant 1 message Aug 19, 2022

lore
Share & tools
lore

Tomi Belan

author
#0 lore raw

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

---
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
index 068d39a..beab7d0 100644
@@ -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