diff options
author | R. Imura <imura@FreeBSD.org> | 2000-01-30 16:21:32 +0000 |
---|---|---|
committer | R. Imura <imura@FreeBSD.org> | 2000-01-30 16:21:32 +0000 |
commit | 3649ada3e3df591a6c1e58a576ac1e06b3c0e8a6 (patch) | |
tree | a5a6ad7874a42bb856ac75d3c3225f194fc401c8 /net/libsocket++ | |
parent | 112745e296811255905881208f4f4ffa574badf9 (diff) | |
download | ports-3649ada3e3df591a6c1e58a576ac1e06b3c0e8a6.tar.gz ports-3649ada3e3df591a6c1e58a576ac1e06b3c0e8a6.zip |
Notes
Diffstat (limited to 'net/libsocket++')
-rw-r--r-- | net/libsocket++/files/patch-ad | 50 | ||||
-rw-r--r-- | net/libsocket++/files/patch-ae | 34 |
2 files changed, 84 insertions, 0 deletions
diff --git a/net/libsocket++/files/patch-ad b/net/libsocket++/files/patch-ad new file mode 100644 index 000000000000..30934cc4eb2c --- /dev/null +++ b/net/libsocket++/files/patch-ad @@ -0,0 +1,50 @@ +--- sockstream.C.old Sat Jan 29 16:47:41 2000 ++++ sockstream.C Sun Jan 30 11:28:18 2000 +@@ -43,6 +43,7 @@ + + #include <config.h> + #include <sockstream.h> ++#include <osreldate.h> + + EXTERN_C_BEGIN + #include <sys/time.h> +@@ -275,8 +276,13 @@ + { + int len = sa.size (); + int soc = -1; ++#if (__FreeBSD_version < 400013) + while ((soc = ::accept (rep->sock, sa.addr (), &len)) == -1 + && errno == EINTR) ++#else ++ while ((soc = ::accept (rep->sock, sa.addr (), (socklen_t *) &len)) == -1 ++ && errno == EINTR) ++#endif + errno = 0; + if (soc == -1) + error ("sockbuf::accept"); +@@ -321,8 +327,13 @@ + int rval; + int sa_len = sa.size (); + ++#if (__FreeBSD_version < 400013) + if ((rval = ::recvfrom (rep->sock, (char*) buf, len, + msgf, sa.addr (), &sa_len)) == -1) ++#else ++ if ((rval = ::recvfrom (rep->sock, (char*) buf, len, ++ msgf, sa.addr (), (socklen_t *) &sa_len)) == -1) ++#endif + error ("sockbuf::recvfrom"); + return (rval==0) ? EOF: rval; + } +@@ -491,7 +502,11 @@ + int sockbuf::getopt (option op, void* buf, int len, level l) const + { + int rlen = len; ++#if (__FreeBSD_version < 400013) + if (::getsockopt (rep->sock, l, op, (char*) buf, &rlen) == -1) ++#else ++ if (::getsockopt (rep->sock, l, op, (char*) buf, (socklen_t *) &rlen) == -1) ++#endif + perror ("sockbuf::getopt"); + return rlen; + } diff --git a/net/libsocket++/files/patch-ae b/net/libsocket++/files/patch-ae new file mode 100644 index 000000000000..2b809b0dad2f --- /dev/null +++ b/net/libsocket++/files/patch-ae @@ -0,0 +1,34 @@ +--- sockinet.C.old Sat Jan 29 16:57:13 2000 ++++ sockinet.C Sun Jan 30 11:30:02 2000 +@@ -10,6 +10,7 @@ + + #include <config.h> + #include <sockinet.h> ++#include <osreldate.h> + + EXTERN_C_BEGIN + #include <netdb.h> +@@ -144,7 +145,11 @@ + { + sockinetaddr sin; + int len = sin.size(); ++#if (__FreeBSD_version < 400013) + if (::getsockname(rep->sock, sin.addr (), &len) == -1) ++#else ++ if (::getsockname(rep->sock, sin.addr (), (socklen_t *) &len) == -1) ++#endif + perror("sockinetbuf::localaddr()"); + return sin; + } +@@ -168,7 +173,11 @@ + { + sockinetaddr sin; + int len = sin.size(); ++#if (__FreeBSD_version < 400013) + if (::getpeername(rep->sock, sin.addr (), &len) == -1) ++#else ++ if (::getpeername(rep->sock, sin.addr (), (socklen_t *) &len) == -1) ++#endif + perror("sockinetbuf::peeraddr()"); + return sin; + } |