-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue: openwrt/packages#23934 Patch from: https://git.alpinelinux.org/aports/tree/community/tini/fix-missing-basename.patch It solves the error: implicit declaration of function 'basename' with musl libc 1.2.5 Signed-off-by: Andrea Pesaresi <[email protected]>
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/src/tini.c | ||
+++ b/src/tini.c | ||
@@ -18,6 +18,8 @@ | ||
#include "tiniConfig.h" | ||
#include "tiniLicense.h" | ||
|
||
+#define basename(name) (strrchr((name),'/') ? strrchr((name),'/')+1 : (name)) | ||
+ | ||
#if TINI_MINIMAL | ||
#define PRINT_FATAL(...) fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n"); | ||
#define PRINT_WARNING(...) if (verbosity > 0) { fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n"); } |