petitboot icon indicating copy to clipboard operation
petitboot copied to clipboard

Include <libgen.h> when using basename()

Open fossdd opened this issue 3 months ago • 4 comments

basename() is part of libgen.h in POSIX, so import it before using.

This fixes the build on musl libc with gcc 15+.

fossdd avatar Oct 01 '25 08:10 fossdd