It's better to patch the BSD_CONST definition itself, by including
SOLARIS in its first conditional at src/include/trousers_types.h.

#if (defined (__linux) || defined (linux) || defined (SOLARIS))
#define BSD_CONST
#elif (defined (__OpenBSD__) || defined (__FreeBSD__))
#define BSD_CONST const
#endif

Thanks,
Rajiv Andrade
IBM LTC Security Development

On Wed, 2010-01-27 at 16:17 -0500, Wyllys Ingersoll wrote:
> Minor fix for trousers.c - Solaris does not have BSD_CONST definition.
> 
> -Wyllys Ingersoll
> 
> --- src/trspi/trousers.c.old    Wed Aug  5 12:44:41 2009
> +++ src/trspi/trousers.c        Wed Aug  5 12:45:10 2009
> @@ -29,6 +29,9 @@
>   #include "tsplog.h"
>   #include "obj.h"
> 
> +#ifndef BSD_CONST
> +#define        BSD_CONST const
> +#endif
> 
>   void
>   Trspi_UnloadBlob_NONCE(UINT64 *offset, BYTE *blob, TPM_NONCE *n)
> 
> 
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> TrouSerS-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/trousers-tech


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech

Reply via email to