--- libs/thread/src/pthread/old_thread.cpp 2011-02-07 17:13:59.000000000 -0500 +++ libs/thread/src/pthread/thread.cpp 2011-02-07 17:18:56.000000000 -0500 @@ -50,7 +50,7 @@ extern "C" { - void tls_destructor(void* data) + static void tls_destructor(void* data) { boost::detail::thread_data_base* thread_info=static_cast(data); if(thread_info) @@ -111,7 +111,7 @@ { extern "C" { - void* thread_proxy(void* param) + static void* thread_proxy(void* param) { boost::detail::thread_data_ptr thread_info = static_cast(param)->self; thread_info->self.reset(); --- libs/thread/src/pthread/old_once.cpp 2011-02-07 17:14:11.000000000 -0500 +++ libs/thread/src/pthread/once.cpp 2011-02-07 17:18:20.000000000 -0500 @@ -22,14 +22,20 @@ pthread_key_t epoch_tss_key; pthread_once_t epoch_tss_key_flag=PTHREAD_ONCE_INIT; - extern "C" void delete_epoch_tss_data(void* data) + extern "C" { - free(data); + static void delete_epoch_tss_data(void* data) + { + free(data); + } } - extern "C" void create_epoch_tss_key() + extern "C" { - BOOST_VERIFY(!pthread_key_create(&epoch_tss_key,delete_epoch_tss_data)); + static void create_epoch_tss_key() + { + BOOST_VERIFY(!pthread_key_create(&epoch_tss_key,delete_epoch_tss_data)); + } } }