The problem is that the testcases use *_t as typedef which is reserved by POSIX and one of them conflicts with Darwin's headers, policy_t. I changed all the *_t to be named *_type which is consistent with other libstdc++ tests and other mt_allocator tests. OK? Thanks, Andrew Pinski ChangeLog: * testsuite/ext/mt_allocator/deallocate_global-2.c: s/value_t/value_type/. s/traits_t/traits_type/. s/policy_t/policy_type/. s/allocator_t/allocator_type/. s/string_t/string_type/. s/list_t/list_type/. * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise. * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise. * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise. * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise. * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise. * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise. * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.