I'm not sure this is the right thing to do. If it is, then it means that the configure script is broken and should be fixed.
See https://gitlab.freedesktop.org/libbsd/libbsd/-/commit/e7cf8c5785b14fc8fbd37bb665a5f9a4f28c7888
--
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/33168#note_229258
I believe this was solved with 5cc6c988bc568a8b47ff8901228b863c7d6ba5ae
--
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/33168#note_229260