diff options
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 */ |