attr: fix compilation with GCC 14
authorRosen Penev <rosenp@gmail.com>
Mon, 13 May 2024 03:43:11 +0000 (20:43 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 14 May 2024 23:40:22 +0000 (16:40 -0700)
Missing header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/attr/Makefile
utils/attr/patches/200-basename.patch [new file with mode: 0644]

index b0cf525383ac8e5bbcbdd2460c389d60485f0c25..bf9b59337f11b77371a4300676e7b2f2bfe3d1eb 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=attr
 PKG_VERSION:=2.5.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://git.savannah.nongnu.org/cgit/attr.git/snapshot
diff --git a/utils/attr/patches/200-basename.patch b/utils/attr/patches/200-basename.patch
new file mode 100644 (file)
index 0000000..81c3112
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/tools/attr.c
++++ b/tools/attr.c
+@@ -27,6 +27,7 @@
+ #include <unistd.h>
+ #include <errno.h>
+ #include <string.h>
++#include <libgen.h>
+ #include <locale.h>
+ #include <attr/attributes.h>