Portability fixes. Now builds on Linux 2.2 and 2.4 and solaris.

Also builds on i386, alpha, G3/G4, and sparc.
This commit is contained in:
crs
2003-01-08 21:36:14 +00:00
parent 0347bb1667
commit 7872c30111
3 changed files with 16 additions and 4 deletions

View File

@@ -641,8 +641,9 @@ CArchNetworkBSD::addrToName(CArchNetAddress addr)
// mutexed name lookup (ugh)
ARCH->lockMutex(m_mutex);
struct hostent* info = gethostbyaddr(&addr->m_addr, addr->m_len,
addr->m_addr.sa_family);
struct hostent* info = gethostbyaddr(
reinterpret_cast<const char*>(&addr->m_addr),
addr->m_len, addr->m_addr.sa_family);
if (info == NULL) {
ARCH->unlockMutex(m_mutex);
throwNameError(h_errno);