id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 6161,SunOS: bad putenv declaration,fguiliani@…,Raffi Enficiaud,"Boost 1.48.0 doesn't compile on SunOS 5.10 with the following error: sun.compile.c++ /boost-1.48.0.0/object-optimize/SunOS-5.10-i386/build-boost-test/boost/bin.v2/libs/test/build/sun/release/link-static/stdlib-sun-stlport/threading-multi/unit_test_parameters.o ""/usr/include/stdlib.h"", line 120: Error: putenv(char*) was declared before with a different language. The following patch does fix the problem: Index: boost/test/utils/runtime/config.hpp =================================================================== --- boost/test/utils/runtime/config.hpp (revision 182) +++ boost/test/utils/runtime/config.hpp (working copy) @@ -45,7 +45,9 @@ #endif #ifdef __SUNPRO_CC -extern int putenv(char*); +extern ""C"" { + extern int putenv(char*); +} #endif namespace boost { ",Bugs,closed,Boost 1.59.0,test,Boost 1.48.0,Regression,fixed,,