Import of pkgsrc-2015Q2

This commit is contained in:
2015-08-30 02:56:09 -07:00
committed by Lionel Sambuc
parent 4af1cdf7a9
commit f641581404
15409 changed files with 267784 additions and 121624 deletions

View File

@@ -1,17 +1,10 @@
$NetBSD: patch-commoncpp_udp.cpp,v 1.2 2014/01/19 00:49:06 rodent Exp $
$NetBSD: patch-commoncpp_udp.cpp,v 1.3 2015/04/18 02:43:24 rodent Exp $
--- commoncpp/udp.cpp.orig 2014-01-04 17:32:41.000000000 +0000
Fix build for NetBSD.
--- commoncpp/udp.cpp.orig 2015-03-24 23:28:03.000000000 +0000
+++ commoncpp/udp.cpp
@@ -409,7 +409,7 @@ Socket::Error UDPSocket::join(const IPV4
setsockopt(so, IPPROTO_IP, IP_ADD_MEMBERSHIP, (char *)&group, sizeof(group));
return errSuccess;
-#elif defined(IP_ADD_MEMBERSHIP) && defined(SIOCGIFINDEX) && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(_OSF_SOURCE) && !defined(__hpux) && !defined(__GNU__)
+#elif defined(IP_ADD_MEMBERSHIP) && defined(SIOCGIFINDEX) && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(_OSF_SOURCE) && !defined(__hpux) && !defined(__GNU__) && !defined(__NetBSD__)
struct ip_mreqn group;
struct sockaddr_in myaddr;
@@ -448,7 +448,7 @@ Socket::Error UDPSocket::join(const IPV4
@@ -317,7 +317,7 @@ Socket::Error UDPSocket::join(const ucom
Socket::Error UDPSocket::getInterfaceIndex(const char *DeviceName,int& InterfaceIndex)
{
#ifndef _MSWINDOWS_