From: Stefan Berger Date: Mon, 10 Sep 2018 16:15:26 +0000 (+0000) Subject: tpm2: Enable compilation on DragonflyBSD X-Git-Tag: v0.9.0~621 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=418d2a22cdfb36808ec1578ad1f4cba19a53b9e4;p=libtpms.git tpm2: Enable compilation on DragonflyBSD Signed-off-by: Stefan Berger --- diff --git a/src/tpm2/Implementation.h b/src/tpm2/Implementation.h index 17aa281..7f0942d 100644 --- a/src/tpm2/Implementation.h +++ b/src/tpm2/Implementation.h @@ -81,7 +81,7 @@ #define SET 1 #define CLEAR 0 /* From Vendor-Specific: Table 1 - Defines for Processor Values */ -#if defined __FreeBSD__ +#if defined __FreeBSD__ || defined __DragonFly__ # include #elif defined __APPLE__ # include @@ -97,7 +97,8 @@ #define BIG_ENDIAN_TPM YES #define LITTLE_ENDIAN_TPM NO #endif -#elif defined __OpenBSD__ || defined __FreeBSD__ || defined __NetBSD__ +#elif defined __OpenBSD__ || defined __FreeBSD__ || defined __NetBSD__ \ + || defined __DragonFly__ #if _BYTE_ORDER == _LITTLE_ENDIAN #define BIG_ENDIAN_TPM NO #define LITTLE_ENDIAN_TPM YES diff --git a/src/tpm2/Volatile.c b/src/tpm2/Volatile.c index 500835e..dce3a06 100644 --- a/src/tpm2/Volatile.c +++ b/src/tpm2/Volatile.c @@ -58,7 +58,7 @@ /* */ /********************************************************************************/ -#if defined __FreeBSD__ +#if defined __FreeBSD__ || defined __DragonFly__ # include #elif defined __APPLE__ # include