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 */