Commit 1a0b588
committed
libled: provide basename if GLIBC is not avialable
If GNU basename is not avilable, define it. It is safer to use that
rather than include libgen.h with XPG basename() definition.
Suggested in https://github.com/md-raid-utilities/ledmon/pull/
272#issuecomment-3596495739
Code copied from
md-raid-utilities/mdadm@9dbd11e
Signed-off-by: Bernd Kuhls <[email protected]>1 parent 510f9d0 commit 1a0b588
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
73 | 82 | | |
0 commit comments