File ocki-3.1-fix-implicit-decl.patch of Package openCryptoki.2906
--- opencryptoki/usr/lib/pkcs11/common/loadsave.c +++ opencryptoki/usr/lib/pkcs11/common/loadsave.c @@ -287,6 +287,9 @@ // // +/* _GNU_SOURCE necessary for asprintf */ +#define _GNU_SOURCE + #include <pthread.h> #include <stdio.h> #include <stdlib.h> --- opencryptoki/usr/lib/pkcs11/common/mech_rng.c +++ opencryptoki/usr/lib/pkcs11/common/mech_rng.c @@ -301,6 +301,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> +#include <unistd.h> #include "pkcs11types.h" --- opencryptoki/usr/lib/pkcs11/tpm_stdll/tpm_specific.c +++ opencryptoki/usr/lib/pkcs11/tpm_stdll/tpm_specific.c @@ -31,6 +31,9 @@ * */ +#define _GNU_SOURCE +#include <stdio.h> + #include <pthread.h> #include <string.h> #include <stdlib.h> --- opencryptoki/usr/sbin/pkcsslotd/garbage_linux.c +++ opencryptoki/usr/sbin/pkcsslotd/garbage_linux.c @@ -294,6 +294,7 @@ #include <string.h> #include <sys/types.h> #include <fcntl.h> +#include <unistd.h> #include "log.h" #include "slotmgr.h" --- opencryptoki/usr/sbin/pkcsslotd/mutex.c +++ opencryptoki/usr/sbin/pkcsslotd/mutex.c @@ -293,6 +293,9 @@ #include <sys/types.h> #include <sys/file.h> #include <grp.h> +#include <sys/stat.h> +#include <string.h> +#include <unistd.h> #include "log.h" #include "slotmgr.h" --- opencryptoki/usr/sbin/pkcsslotd/slotmgr.c +++ opencryptoki/usr/sbin/pkcsslotd/slotmgr.c @@ -292,6 +292,7 @@ #include <stdio.h> #include <stdlib.h> #include <errno.h> +#include <unistd.h> #include "log.h" #include "slotmgr.h"