aports/community/proot/fix-basename.patch
Celeste fad73a5345 community/proot: improve & move from testing
- enable on loongarch64 and riscv64

 - fix build on gcc 15

 - build with verbose make
2026-01-19 07:15:41 +00:00

13 lines
217 B
Diff

--- a/src/cli/cli.c
+++ b/src/cli/cli.c
@@ -49,6 +49,9 @@
#include "build.h"
+#define basename(path) \
+ (strrchr((path),'/') ? strrchr((path),'/')+1 : (path))
+
/**
* Print a (@detailed) usage of PRoot.
*/