diff --git a/gcc/cp/mapper-resolver.cc b/gcc/cp/mapper-resolver.cc index 02ec48c61eabdc07e2309f3c912df2aea1d498ab..8e968c5255613af159035d2b3ded522dd74d19ae 100644 --- a/gcc/cp/mapper-resolver.cc +++ b/gcc/cp/mapper-resolver.cc @@ -21,6 +21,12 @@ along with GCC; see the file COPYING3. If not see /* Forward to the resolver in c++tools. */ #include "config.h" +#if defined (__unix__) +// Solaris11's socket header used bcopy, which we poison. cody.hh +// will include it later under the above check +#include <sys/socket.h> +#endif + #define INCLUDE_ALGORITHM #include "system.h"