summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-03-05 09:35:45 +0000
committercelestar <celestar@openttd.org>2007-03-05 09:35:45 +0000
commit7d08af73f0f02490e8075dcf57e8183a205c34d8 (patch)
treef3970974dfb7b522df3fcbbf1260193241300c27 /src/network
parent30d1b223c89e88145a670f9e6ffa9aaf20bc2db5 (diff)
downloadopenttd-7d08af73f0f02490e8075dcf57e8183a205c34d8.tar.xz
(svn r9016) [SunOS] -Fix: Don't use a struct-member that doesn't exist.
-Documentation: Updated readme.txt for SunOS 5.10 (aka Solaris 10) Note: With this commit, building and running on Solaris 10 works, thus we officially support this OS now :)
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index c523623ce..7c7aa9a3a 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -491,7 +491,7 @@ static void NetworkFindIPs(void)
}
p += sizeof(struct ifreq);
-#ifdef AF_LINK
+#if defined(AF_LINK) && !defined(SUNOS)
p += req->ifr_addr.sa_len - sizeof(struct sockaddr);
#endif
}