Gentoo's Bugzilla –
Attachment 856905 Details for
Bug 900495app-misc/libdatovka-0.2.1 fails to compile (MUSL-CLANG-SYSTEM): server_cli.c:91:28: error: call to undeclared function getopt; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]