components/trousers/patches/include_trousers_types.h.patch
author Craig Mohrman <craig.mohrman@oracle.com>
Thu, 04 Aug 2016 08:26:36 -0700
changeset 6548 24913c16931e
parent 5941 db8aa9865e9f
permissions -rw-r--r--
PSARC/2016/303 enable rsyslog as default Solaris logger 24362425 rsyslog should degrade service if syslog.conf has been modified

# 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