https://github.com/linux-audit/audit-userspace/commit/b6e0c6eb88a4d866bc8316706277dbc33670022a Since musl 1.2.5, basename(3) is strict-POSIX compliant, and needs #include , instead of the GNU version included with --- a/audisp/plugins/zos-remote/zos-remote-config.c +++ b/audisp/plugins/zos-remote/zos-remote-config.c @@ -32,6 +32,7 @@ #include #include #include +#include #include "zos-remote-log.h" /* Local prototypes */