The following patch is to enable hosttable.c "_init" and "_fini" functions to
work
correctly with Solaris compilers.
*** src/tspi/rpc/hosttable.c.old Wed Dec 17 14:31:33 2008
--- src/tspi/rpc/hosttable.c Wed Dec 17 14:30:57 2008
***************
*** 35,41 ****
--- 35,46 ----
return TSS_SUCCESS;
}
+ #ifdef SOLARIS
+ #pragma init(_init)
+ void _init(void)
+ #else
void __attribute__ ((constructor)) my_init(void)
+ #endif
{
host_table_init();
obj_list_init();
------------------------------------------------------------------------------
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