diff options
author | Munechika SUMIKAWA <sumikawa@FreeBSD.org> | 2002-03-24 08:22:52 +0000 |
---|---|---|
committer | Munechika SUMIKAWA <sumikawa@FreeBSD.org> | 2002-03-24 08:22:52 +0000 |
commit | fd1e56fd983993538e1ee8292b2a6ebaf6e8c2d2 (patch) | |
tree | afb1c3460cce8052773a9db509706b21ecb3a327 | |
parent | c3cbac4e3851b629c04bcab7d2cc7462246cf2ee (diff) | |
download | ports-fd1e56fd983993538e1ee8292b2a6ebaf6e8c2d2.tar.gz ports-fd1e56fd983993538e1ee8292b2a6ebaf6e8c2d2.zip |
Notes
-rw-r--r-- | mbone/vic/Makefile | 6 | ||||
-rw-r--r-- | mbone/vic/files/patch-inet6.c | 14 | ||||
-rw-r--r-- | mbone/vic/files/patch-inet6.h | 34 | ||||
-rw-r--r-- | mbone/vic/files/patch-net-ipv6.cpp | 29 | ||||
-rw-r--r-- | multimedia/vic/Makefile | 6 | ||||
-rw-r--r-- | multimedia/vic/files/patch-inet6.c | 14 | ||||
-rw-r--r-- | multimedia/vic/files/patch-inet6.h | 34 | ||||
-rw-r--r-- | multimedia/vic/files/patch-net-ipv6.cpp | 29 |
8 files changed, 162 insertions, 4 deletions
diff --git a/mbone/vic/Makefile b/mbone/vic/Makefile index 0866c835fa97..b6a562e4e9a0 100644 --- a/mbone/vic/Makefile +++ b/mbone/vic/Makefile @@ -7,7 +7,8 @@ PORTNAME= vic PORTVERSION= 2.8.1.1.3 -CATEGORIES= mbone tk83 +PORTREVISION= 1 +CATEGORIES= mbone tk83 ipv6 MASTER_SITES= http://www-mice.cs.ucl.ac.uk/multimedia/software/vic/2.8ucl-1.1.3/ DISTNAME= ${PORTNAME}-2.8ucl-1.1.3 @@ -25,7 +26,8 @@ CONFIGURE_ARGS= -x-libraries=${PREFIX}/lib \ -without-ucltcl \ -with-tcl=${LOCALBASE} \ -without-ucltk \ - -with-tk=${LOCALBASE} + -with-tk=${LOCALBASE} \ + -enable-ipv6 MAN1= vic.1 pre-patch: diff --git a/mbone/vic/files/patch-inet6.c b/mbone/vic/files/patch-inet6.c new file mode 100644 index 000000000000..3d1ba594a6f2 --- /dev/null +++ b/mbone/vic/files/patch-inet6.c @@ -0,0 +1,14 @@ +--- net/inet6.c.org Mon Feb 4 17:51:32 2002 ++++ net/inet6.c Mon Feb 4 17:52:02 2002 +@@ -64,11 +64,7 @@ + memcpy(addr->s6_addr, &(((struct sockaddr_in6 *)(ai->ai_addr))->sin6_addr), sizeof(struct in6_addr)); + return (0); + #else +-#ifdef MUSICA_IPV6 + hp = gethostbyname2(hostname, AF_INET6); +-#else +- hp = getnodebyname(hostname, AF_INET6,AI_DEFAULT); +-#endif /*MUSICA_IPV6*/ + #endif /*LINUX_IPV6*/ + #endif /*SOLARIS7_IPV6*/ + if (hp == 0) return (-1); diff --git a/mbone/vic/files/patch-inet6.h b/mbone/vic/files/patch-inet6.h new file mode 100644 index 000000000000..ed330bfa8b04 --- /dev/null +++ b/mbone/vic/files/patch-inet6.h @@ -0,0 +1,34 @@ +--- net/inet6.h.org Mon Feb 4 17:51:39 2002 ++++ net/inet6.h Mon Feb 4 17:52:02 2002 +@@ -44,7 +44,6 @@ + #define vic_inet6_h + + #ifdef HAVE_IPV6 +- + #include <sys/types.h> + #ifdef WIN32 + //#include <winsock.h> +@@ -62,10 +61,23 @@ + } + #else + #include <netinet/in.h> ++#include <netinet6/in6.h> + #endif + #endif + #ifndef WIN32 + #include <arpa/inet.h> ++#ifdef _NETINET6_IN6_H_ ++#ifndef IPV6_ADD_MEMBERSHIP ++#ifdef IPV6_JOIN_GROUP ++#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP ++#endif /* IPV6_JOIN_GROUP */ ++#endif /* IPV6_ADD_MEMBERSHIP */ ++#ifndef IPV6_DROP_MEMBERSHIP ++#ifdef IPV6_LEAVE_GROUP ++#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP ++#endif /* IPV6_LEAVE_GROUP */ ++#endif /* IPV6_DROP_MEMBERSHIP */ ++#endif /* _NETINET6_IN6_H_ */ + #endif + + #include "config.h" diff --git a/mbone/vic/files/patch-net-ipv6.cpp b/mbone/vic/files/patch-net-ipv6.cpp new file mode 100644 index 000000000000..26397cdde8ff --- /dev/null +++ b/mbone/vic/files/patch-net-ipv6.cpp @@ -0,0 +1,29 @@ +--- net/net-ipv6.cpp.org Mon Feb 4 17:51:46 2002 ++++ net/net-ipv6.cpp Mon Feb 4 17:52:08 2002 +@@ -277,7 +277,7 @@ + p->sin6_family = AF_INET6; + int len = sizeof(*p), result = 0; + +- if ((result = getsockname(ssock_, (struct sockaddr *)p, &len)) < 0) { ++ if ((result = getsockname(ssock_, (struct sockaddr *)p, (socklen_t *)&len)) < 0) { + perror("getsockname"); + p->sin6_addr = in6addr_any; + p->sin6_port = 0; +@@ -364,7 +364,7 @@ + * with bated breath. + */ + #if defined(__FreeBSD__) +- struct oipv6_mreq mr; ++ struct ipv6_mreq mr; + #else + struct ipv6_mreq mr; + #endif +@@ -522,7 +522,7 @@ + sockaddr_in6 sfrom; + int fromlen = sizeof(sfrom); + int cc = ::recvfrom(fd, (char*)buf, len, 0, +- (sockaddr*)&sfrom, &fromlen); ++ (sockaddr*)&sfrom, (socklen_t *)&fromlen); + if (cc < 0) { + if (errno != EWOULDBLOCK) + perror("recvfrom"); diff --git a/multimedia/vic/Makefile b/multimedia/vic/Makefile index 0866c835fa97..b6a562e4e9a0 100644 --- a/multimedia/vic/Makefile +++ b/multimedia/vic/Makefile @@ -7,7 +7,8 @@ PORTNAME= vic PORTVERSION= 2.8.1.1.3 -CATEGORIES= mbone tk83 +PORTREVISION= 1 +CATEGORIES= mbone tk83 ipv6 MASTER_SITES= http://www-mice.cs.ucl.ac.uk/multimedia/software/vic/2.8ucl-1.1.3/ DISTNAME= ${PORTNAME}-2.8ucl-1.1.3 @@ -25,7 +26,8 @@ CONFIGURE_ARGS= -x-libraries=${PREFIX}/lib \ -without-ucltcl \ -with-tcl=${LOCALBASE} \ -without-ucltk \ - -with-tk=${LOCALBASE} + -with-tk=${LOCALBASE} \ + -enable-ipv6 MAN1= vic.1 pre-patch: diff --git a/multimedia/vic/files/patch-inet6.c b/multimedia/vic/files/patch-inet6.c new file mode 100644 index 000000000000..3d1ba594a6f2 --- /dev/null +++ b/multimedia/vic/files/patch-inet6.c @@ -0,0 +1,14 @@ +--- net/inet6.c.org Mon Feb 4 17:51:32 2002 ++++ net/inet6.c Mon Feb 4 17:52:02 2002 +@@ -64,11 +64,7 @@ + memcpy(addr->s6_addr, &(((struct sockaddr_in6 *)(ai->ai_addr))->sin6_addr), sizeof(struct in6_addr)); + return (0); + #else +-#ifdef MUSICA_IPV6 + hp = gethostbyname2(hostname, AF_INET6); +-#else +- hp = getnodebyname(hostname, AF_INET6,AI_DEFAULT); +-#endif /*MUSICA_IPV6*/ + #endif /*LINUX_IPV6*/ + #endif /*SOLARIS7_IPV6*/ + if (hp == 0) return (-1); diff --git a/multimedia/vic/files/patch-inet6.h b/multimedia/vic/files/patch-inet6.h new file mode 100644 index 000000000000..ed330bfa8b04 --- /dev/null +++ b/multimedia/vic/files/patch-inet6.h @@ -0,0 +1,34 @@ +--- net/inet6.h.org Mon Feb 4 17:51:39 2002 ++++ net/inet6.h Mon Feb 4 17:52:02 2002 +@@ -44,7 +44,6 @@ + #define vic_inet6_h + + #ifdef HAVE_IPV6 +- + #include <sys/types.h> + #ifdef WIN32 + //#include <winsock.h> +@@ -62,10 +61,23 @@ + } + #else + #include <netinet/in.h> ++#include <netinet6/in6.h> + #endif + #endif + #ifndef WIN32 + #include <arpa/inet.h> ++#ifdef _NETINET6_IN6_H_ ++#ifndef IPV6_ADD_MEMBERSHIP ++#ifdef IPV6_JOIN_GROUP ++#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP ++#endif /* IPV6_JOIN_GROUP */ ++#endif /* IPV6_ADD_MEMBERSHIP */ ++#ifndef IPV6_DROP_MEMBERSHIP ++#ifdef IPV6_LEAVE_GROUP ++#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP ++#endif /* IPV6_LEAVE_GROUP */ ++#endif /* IPV6_DROP_MEMBERSHIP */ ++#endif /* _NETINET6_IN6_H_ */ + #endif + + #include "config.h" diff --git a/multimedia/vic/files/patch-net-ipv6.cpp b/multimedia/vic/files/patch-net-ipv6.cpp new file mode 100644 index 000000000000..26397cdde8ff --- /dev/null +++ b/multimedia/vic/files/patch-net-ipv6.cpp @@ -0,0 +1,29 @@ +--- net/net-ipv6.cpp.org Mon Feb 4 17:51:46 2002 ++++ net/net-ipv6.cpp Mon Feb 4 17:52:08 2002 +@@ -277,7 +277,7 @@ + p->sin6_family = AF_INET6; + int len = sizeof(*p), result = 0; + +- if ((result = getsockname(ssock_, (struct sockaddr *)p, &len)) < 0) { ++ if ((result = getsockname(ssock_, (struct sockaddr *)p, (socklen_t *)&len)) < 0) { + perror("getsockname"); + p->sin6_addr = in6addr_any; + p->sin6_port = 0; +@@ -364,7 +364,7 @@ + * with bated breath. + */ + #if defined(__FreeBSD__) +- struct oipv6_mreq mr; ++ struct ipv6_mreq mr; + #else + struct ipv6_mreq mr; + #endif +@@ -522,7 +522,7 @@ + sockaddr_in6 sfrom; + int fromlen = sizeof(sfrom); + int cc = ::recvfrom(fd, (char*)buf, len, 0, +- (sockaddr*)&sfrom, &fromlen); ++ (sockaddr*)&sfrom, (socklen_t *)&fromlen); + if (cc < 0) { + if (errno != EWOULDBLOCK) + perror("recvfrom"); |