mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
14 lines
601 B
Diff
14 lines
601 B
Diff
See https://gitlab.alpinelinux.org/alpine/aports/-/issues/16106
|
|
|
|
diff -upr quota-4.09.orig/common.h quota-4.09/common.h
|
|
--- quota-4.09.orig/common.h 2024-07-17 21:24:31.966854060 +0200
|
|
+++ quota-4.09/common.h 2024-07-17 21:24:57.050235540 +0200
|
|
@@ -67,4 +67,7 @@ int timespec_cmp(struct timespec *a, str
|
|
/* Convert command line option to desired output unit */
|
|
int unitopt2unit(char *opt, enum s2s_unit *space_unit, enum s2s_unit *inode_unit);
|
|
|
|
+/* Implementation of the GNU basename(3) version */
|
|
+#define basename(src) (strrchr(src,'/') ? strrchr(src,'/')+1 : src)
|
|
+
|
|
#endif /* GUARD_COMMON_H */
|