diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2003-11-14 16:33:33 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2003-11-14 16:33:33 +0000 |
commit | 7ab4a1fe58139bc586065444a529c554479c2574 (patch) | |
tree | dda92305527359c66a3e9895a576058f950793bf /net/mcl/files/patch-mcl_network.cpp | |
parent | 461abecb09279f2fe663a57dd63224bfd8cc084b (diff) |
Add mcl 2.99,
implementation of the ALC and NORM Reliable Multicast
Protocols.
PR: 58728
Submitted by: past@noc.ntua.gr
Notes
Notes:
svn path=/head/; revision=93959
Diffstat (limited to 'net/mcl/files/patch-mcl_network.cpp')
-rw-r--r-- | net/mcl/files/patch-mcl_network.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/net/mcl/files/patch-mcl_network.cpp b/net/mcl/files/patch-mcl_network.cpp new file mode 100644 index 000000000000..6e5a8cfaebfe --- /dev/null +++ b/net/mcl/files/patch-mcl_network.cpp @@ -0,0 +1,48 @@ +--- src/alc/mcl_network.cpp.orig Tue Jul 22 19:37:39 2003 ++++ src/alc/mcl_network.cpp Tue Oct 14 15:47:45 2003 +@@ -414,8 +414,10 @@ + pkt->pkt_len = recvfrom(mg->ses_sock, + pkt->get_buf(), pkt->get_buf_len(), + 0, &saddr, +-#ifdef LINUX ++#if defined(LINUX) + (size_t*) ++#elif defined(FREEBSD) ++ (socklen_t*) + #endif + &saddr_len); + #ifdef WIN32 +@@ -483,8 +485,10 @@ + pkt->pkt_len = recvfrom(mg->priv_sock, + pkt->get_buf(), pkt->get_buf_len(), + 0, &saddr, +-#ifdef LINUX ++#if defined(LINUX) + (size_t*) ++#elif defined(FREEBSD) ++ (socklen_t*) + #endif + &saddr_len); + #ifdef WIN32 +@@ -663,8 +667,10 @@ + err = setsockopt(fd, SOL_SOCKET, buf, (char*)&val, sizeof(val)); + else + err = getsockopt(fd, SOL_SOCKET, buf, (char*)&val, +-#ifdef LINUX +- (size_t*) /* linux => uint, solaris => int */ ++#if defined(LINUX) ++ (size_t*) ++#elif defined(FREEBSD) ++ (socklen_t*) + #endif + &len); + if (err < 0) { +@@ -938,7 +944,7 @@ + + if (mcl_is_valid_sock(mg->priv_sock) && + getsockname(mg->priv_sock, (struct sockaddr *)&tmp_addr, +-#ifdef LINUX ++#if defined(LINUX) || defined(FREEBSD) + (socklen_t*) + #endif + &tmp_len) < 0) { |