]> git.proxmox.com Git - libtpms.git/commitdiff
tpm2: Enable compilation on DragonflyBSD
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 10 Sep 2018 16:15:26 +0000 (16:15 +0000)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 10 Sep 2018 16:15:29 +0000 (16:15 +0000)
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/tpm2/Implementation.h
src/tpm2/Volatile.c

index 17aa28127fc51a056907e586fd856543109e47c1..7f0942dd4671ce7afab5ed87920ca641780ae3cf 100644 (file)
@@ -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 <sys/endian.h>
 #elif defined __APPLE__
 # include <libkern/OSByteOrder.h>
@@ -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
index 500835e52bf511effe872d574d54f209c4e15a18..dce3a06193c0d627c4144fa7be247af44baf3566 100644 (file)
@@ -58,7 +58,7 @@
 /*                                                                             */
 /********************************************************************************/
 
-#if defined __FreeBSD__
+#if defined __FreeBSD__ || defined __DragonFly__
 # include <sys/endian.h>
 #elif defined __APPLE__
 # include <libkern/OSByteOrder.h>