From 2ca56a209f9968e4546ab3c7038a3dec03709cfa Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 16 Mar 2005 17:13:08 +0000 Subject: Fixed compilation problems on Solaris 9. --- src/platforms/posix/posixSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/platforms') diff --git a/src/platforms/posix/posixSocket.cpp b/src/platforms/posix/posixSocket.cpp index 39acf666..1be5788c 100644 --- a/src/platforms/posix/posixSocket.cpp +++ b/src/platforms/posix/posixSocket.cpp @@ -83,7 +83,7 @@ void posixSocket::connect(const vmime::string& address, const vmime::port_t port throw vmime::exceptions::connection_error("Cannot resolve address."); } - bcopy(hostInfo->h_addr, reinterpret_cast (&addr.sin_addr), hostInfo->h_length); + ::memcpy(reinterpret_cast (&addr.sin_addr), hostInfo->h_addr, hostInfo->h_length); } // Get a new socket -- cgit v1.2.3