aboutsummaryrefslogtreecommitdiff
path: root/net/licq-devel/files/patch-ad
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2000-11-17 12:19:22 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2000-11-17 12:19:22 +0000
commitd615f4ca564f838b39bd8b504a3107011d951a03 (patch)
treed799b77773a040bd9f634696266507c9072dd071 /net/licq-devel/files/patch-ad
parentc2ed1d8a3eee6f0edbbd6033ea2f1717399741e2 (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_2_0'.release/4.2.0
Notes
Notes: svn path=/head/; revision=35216 svn path=/tags/RELEASE_4_2_0/; revision=35217; tag=release/4.2.0
Diffstat (limited to 'net/licq-devel/files/patch-ad')
-rw-r--r--net/licq-devel/files/patch-ad48
1 files changed, 0 insertions, 48 deletions
diff --git a/net/licq-devel/files/patch-ad b/net/licq-devel/files/patch-ad
deleted file mode 100644
index 7bf734c85ce6..000000000000
--- a/net/licq-devel/files/patch-ad
+++ /dev/null
@@ -1,48 +0,0 @@
---- src/socket.cpp.orig Tue Jul 4 20:51:50 2000
-+++ src/socket.cpp Mon Jul 24 03:32:56 2000
-@@ -12,6 +12,7 @@
- #include <netdb.h>
- #include <fcntl.h>
- #include <unistd.h>
-+#include <osreldate.h>
-
- #ifndef MSG_DONTWAIT
- #define MSG_DONTWAIT 0
-@@ -288,7 +289,12 @@
- bool INetSocket::SetLocalAddress(bool bIp)
- {
- // Setup the local structure
-+
-+#if __FreeBSD_version < 400013
-+ int sizeofSockaddr = sizeof(struct sockaddr_in);
-+#else
- socklen_t sizeofSockaddr = sizeof(struct sockaddr_in);
-+#endif
- if (getsockname(m_nDescriptor, (struct sockaddr *)&m_sLocalAddr, &sizeofSockaddr) < 0)
- {
- m_nErrorType = SOCK_ERROR_errno;
-@@ -372,7 +378,11 @@
- m_sRemoteAddr.sin_family = AF_INET;
-
- // if connect fails then call CloseConnection to clean up before returning
-+#if __FreeBSD_version < 400013
-+ int sizeofSockaddr = sizeof(struct sockaddr);
-+#else
- socklen_t sizeofSockaddr = sizeof(struct sockaddr);
-+#endif
- if (connect(m_nDescriptor, (struct sockaddr *)&m_sRemoteAddr, sizeofSockaddr) < 0)
- {
- // errno has been set
-@@ -504,7 +514,11 @@
- *---------------------------------------------------------------------------*/
- void TCPSocket::RecvConnection(TCPSocket &newSocket)
- {
-- socklen_t sizeofSockaddr = sizeof(struct sockaddr_in);
-+#if __FreeBSD_version < 400013
-+ int sizeofSockaddr = sizeof(struct sockaddr_in);
-+#else
-+ socklen_t sizeofSockaddr = sizeof(struct sockaddr_in);
-+#endif
- newSocket.m_nDescriptor = accept(m_nDescriptor, (struct sockaddr *)&newSocket.m_sRemoteAddr, &sizeofSockaddr);
- newSocket.SetLocalAddress();
- }