pkcs11/rpc-layer/gkm-rpc-daemon-standalone.c is missing #include <sys/select.h>
gkm-rpc-daemon-standalone.c references fd_set at (or around) line 65, but does not include <sys/select.h> as required by POSIX. The problem doesn't show up on glibc systems because of how headers are included by other headers there, but for non-glibc systems (like musl or uclibc), this causes a build failure. The fix is trivial and doesn't break glibc:
--- gnome-keyring-3.14.0.orig/pkcs11/rpc-layer/gkm-rpc-daemon-standalone.c +++ gnome-keyring-3.14.0/pkcs11/rpc-layer/gkm-rpc-daemon-standalone.c @@ -34,6 +34,7 @@ #include <dlfcn.h> #include <pthread.h> +#include <sys/select.h> #define SOCKET_PATH "/tmp/gkm-rpc-daemon.sock"
This problem was hit on a gentoo-musl system. See https://bugs.gentoo.org/683674