Skip to content

properly check for libgen.h

Erik Faye-Lund requested to merge kusma/piglit:libgen-h-robustness into main

Some users are reporting that basename is not available when building on Linux with musl libc. And since the POSIX spec[1] says that basename is defined in libgen.h, we should include that when available.

So let's properly detect the header, and include it if it exists. This should hopefully make things a bit more robust.

Merge request reports

Loading