]> git.proxmox.com Git - swtpm.git/commit
swtpm: Use compiler and system dependent header files
authorStefan Berger <stefanb@linux.ibm.com>
Tue, 5 Oct 2021 15:22:24 +0000 (11:22 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 5 Oct 2021 17:50:45 +0000 (13:50 -0400)
commit0b5826e186946f6faad7c2545ec32e309b6d50d4
tree2fe758572cf8c53c2cd5f9f7d6805b437b1af9c7
parent0841299317ab3e12eea90d424171396ab7a944ec
swtpm: Use compiler and system dependent header files

The header file endian.h does not exists everywhere, so we have to
use system_dependencies.h to get something similar on all systems.

Some compilers, such as gcc on FreeBSD, are picky about unused
function parameters, so we have to decorate the unused ones
with SWTPM_ATTR_UNUSED.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
src/swtpm/swtpm_nvstore_linear.c
src/swtpm/swtpm_nvstore_linear_file.c