opnsense-ports/security/trousers/files/patch-src_include_tcs__tsp.h
Franco Fichtner 0c313eb178 security/trousers: sync with upstream
Taken from: FreeBSD
2016-06-21 06:20:05 +02:00

16 lines
459 B
C

--- src/include/tcs_tsp.h.orig 2016-06-20 15:21:26 UTC
+++ src/include/tcs_tsp.h
@@ -79,7 +79,13 @@ struct key_disk_cache
/* XXX Get rid of this, there's no reason to set an arbitrary limit */
#define MAX_KEY_CHILDREN 10
+#ifndef STRUCTURE_PACKING_ATTRIBUTE
+#ifdef __GCC
#define STRUCTURE_PACKING_ATTRIBUTE __attribute__((packed))
+#else
+#define STRUCTURE_PACKING_ATTRIBUTE /* */
+#endif
+#endif
#ifdef TSS_DEBUG
#define DBG_ASSERT(x) assert(x)