Changeset View
Changeset View
Standalone View
Standalone View
head/security/tpm2-tss/files/patch-src-util-tss2_endian.h
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/util/tss2_endian.h.orig 2019-08-21 19:14:09 UTC | |||||
+++ src/util/tss2_endian.h | |||||
@@ -9,7 +9,11 @@ | |||||
#define TSS2_ENDIAN_H | |||||
#if defined(__linux__) || defined(__unix__) | |||||
+#if defined(__FreeBSD__) | |||||
+#include <sys/endian.h> | |||||
+#else | |||||
#include <endian.h> | |||||
+#endif | |||||
#define HOST_TO_BE_16(value) htobe16(value) | |||||
#define HOST_TO_BE_32(value) htobe32(value) |