components/trousers/patches/include_trousers_types.h.patch
author Dan Anderson <dan.anderson@oracle.com>
Fri, 06 May 2016 17:59:12 -0700
changeset 5941 db8aa9865e9f
permissions -rw-r--r--
15776792 Upgrade TrouSerS TPM library to 0.3.13

# Include Solaris as defining const keyword to remove compiler warnings.
# Solaris-specific, but suitable for use upstream.
# This change was implemented in-house.
#
--- src/include/trousers_types.h	2010-09-10 12:50:27.000000000 -0700
+++ src/include/trousers_types.h	2012-04-23 13:53:43.275840000 -0700
@@ -118,9 +118,9 @@
 	BYTE *encData;
 } TSS_KEY;
 
-#if (defined (__linux) || defined (linux) || defined (SOLARIS) || defined (__GLIBC__))
+#if (defined (__linux) || defined (linux) || defined (__GLIBC__))
 #define BSD_CONST
-#elif (defined (__OpenBSD__) || defined (__FreeBSD__))
+#elif (defined (__OpenBSD__) || defined (__FreeBSD__) || defined (SOLARIS))
 #define BSD_CONST const
 #endif