Skip to content
Snippets Groups Projects
Commit 269e82d4 authored by Nathan Sidwell's avatar Nathan Sidwell
Browse files

C++: Fix solaris header use (mk 2)

There is another path to get to a poisoned bcopy.  Fixed thusly.

	gcc/cp/
	* mapper-resolver.cc: #include sys/socket before system.h
	due to poisoned bcopy use.
parent 652702b0
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,12 @@ along with GCC; see the file COPYING3. If not see ...@@ -21,6 +21,12 @@ along with GCC; see the file COPYING3. If not see
/* Forward to the resolver in c++tools. */ /* Forward to the resolver in c++tools. */
#include "config.h" #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 #define INCLUDE_ALGORITHM
#include "system.h" #include "system.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment