Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86-linux-setup.c: Use POSIX basename API
Musl C library only supports POSIX basename function. while glibc has both GNU extention as well as POSIX basename implemented. Switch to using posix version, so it can work across musl and glibc basename prototype has been removed from string.h from latest musl [1] compilers e.g. clang-18/GCC-14 flags the absense of prototype as error. therefore include libgen.h for providing it. [1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Simon Horman <horms@kernel.org>
- Loading branch information