diff options
Diffstat (limited to 'net/priss/files/patch-ag')
| -rw-r--r-- | net/priss/files/patch-ag | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net/priss/files/patch-ag b/net/priss/files/patch-ag new file mode 100644 index 000000000000..fc41eb11e24b --- /dev/null +++ b/net/priss/files/patch-ag @@ -0,0 +1,26 @@ +--- RhapServer/TCPSocket.cpp.orig Sun Feb 27 09:54:42 2000 ++++ RhapServer/TCPSocket.cpp Sun Feb 27 09:59:32 2000 +@@ -41,6 +41,10 @@ + #include <sys/errno.h> + #endif + ++#ifdef __FreeBSD__ ++#include <sys/param.h> ++#endif ++ + #include "TCPSocket.h" + #include "SocketUtils.h" + #include "OS.h" +@@ -57,7 +61,12 @@ + //make sure to find out what IP address this connection is actually occuring on. That + //way, we can report correct information to clients asking what the connection's IP is + int len = sizeof(fLocalAddr); ++#if defined(__FreeBSD_version) && (__FreeBSD_version >= 400013) ++ int err = ::getsockname(fSocket, (struct sockaddr*)&fLocalAddr, ++ (socklen_t*)&len); ++#else + int err = ::getsockname(fSocket, (struct sockaddr*)&fLocalAddr, &len); ++#endif + AssertV(err == 0, OSThread::GetErrno()); + + fState |= kBound; |
