diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-28 23:59:44 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-28 23:59:44 +0100 |
commit | 5f0030fd1370c4d03dbb2e0d3086f5e618a33749 (patch) | |
tree | d3996b456278fbe1e1528053ddd115c4bac05401 /sys-apps/attr/files/attr-2.5.2-r1-musl-1.2.5.patch | |
parent | 413421048cc2b0df9a218f0ab3cb151846809eb5 (diff) |
gentoo auto-resync : 28:04:2024 - 23:59:44
Diffstat (limited to 'sys-apps/attr/files/attr-2.5.2-r1-musl-1.2.5.patch')
-rw-r--r-- | sys-apps/attr/files/attr-2.5.2-r1-musl-1.2.5.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-apps/attr/files/attr-2.5.2-r1-musl-1.2.5.patch b/sys-apps/attr/files/attr-2.5.2-r1-musl-1.2.5.patch new file mode 100644 index 000000000000..6a1200ad2f17 --- /dev/null +++ b/sys-apps/attr/files/attr-2.5.2-r1-musl-1.2.5.patch @@ -0,0 +1,23 @@ + +If we're not building with glibc, then add its basename definition manually + +diff --git a/tools/attr.c b/tools/attr.c +index f12e4af..d321b37 100644 +--- a/tools/attr.c ++++ b/tools/attr.c +@@ -33,6 +33,15 @@ + + #include "misc.h" + ++#if !defined(__GLIBC__) ++char * ++basename (const char *filename) ++{ ++ char *p = strrchr (filename, '/'); ++ return p ? p + 1 : (char *) filename; ++} ++#endif ++ + #define SETOP 1 /* do a SET operation */ + #define GETOP 2 /* do a GET operation */ + #define REMOVEOP 3 /* do a REMOVE operation */ |