--- 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 #include #include --- opencryptoki/usr/lib/pkcs11/common/mech_rng.c +++ opencryptoki/usr/lib/pkcs11/common/mech_rng.c @@ -301,6 +301,7 @@ #include #include #include +#include #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 + #include #include #include --- opencryptoki/usr/sbin/pkcsslotd/garbage_linux.c +++ opencryptoki/usr/sbin/pkcsslotd/garbage_linux.c @@ -294,6 +294,7 @@ #include #include #include +#include #include "log.h" #include "slotmgr.h" --- opencryptoki/usr/sbin/pkcsslotd/mutex.c +++ opencryptoki/usr/sbin/pkcsslotd/mutex.c @@ -293,6 +293,9 @@ #include #include #include +#include +#include +#include #include "log.h" #include "slotmgr.h" --- opencryptoki/usr/sbin/pkcsslotd/slotmgr.c +++ opencryptoki/usr/sbin/pkcsslotd/slotmgr.c @@ -292,6 +292,7 @@ #include #include #include +#include #include "log.h" #include "slotmgr.h"