summaryrefslogtreecommitdiff
path: root/security/trousers/files/patch-src_include_tcs__tsp.h
blob: 55e1588d57d7771736f79229aa8cf6c81368ae0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- src/include/tcs_tsp.h.orig	2016-11-19 03:09:49 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)