pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ucommon NetBSD now has SIOCGIFINDEX, but not som...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5d75cd38dfd5
branches:  trunk
changeset: 626357:5d75cd38dfd5
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Nov 08 21:14:37 2013 +0000

description:
NetBSD now has SIOCGIFINDEX, but not some of the other Linux APIs.

diffstat:

 devel/ucommon/distinfo                        |   3 ++-
 devel/ucommon/patches/patch-commoncpp_udp.cpp |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r ddd4e6c15806 -r 5d75cd38dfd5 devel/ucommon/distinfo
--- a/devel/ucommon/distinfo    Fri Nov 08 21:14:01 2013 +0000
+++ b/devel/ucommon/distinfo    Fri Nov 08 21:14:37 2013 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.4 2013/07/13 19:22:27 joerg Exp $
+$NetBSD: distinfo,v 1.5 2013/11/08 21:14:37 joerg Exp $
 
 SHA1 (ucommon-6.0.5.tar.gz) = 661d5aa1a164826cf41bc6512c1eb1451a396be1
 RMD160 (ucommon-6.0.5.tar.gz) = 73b1b1fa35320a71718bf5367c273aac7f98076d
 Size (ucommon-6.0.5.tar.gz) = 806904 bytes
 SHA1 (patch-CMakeLists.txt) = 4d4c11a89111161bc8d8fe3715f643290ecb6149
 SHA1 (patch-commoncpp_address.cpp) = 13fc4a7073b6c2de6329a90269045fc3dbb0e389
+SHA1 (patch-commoncpp_udp.cpp) = 17d61b4f3a885d897b222b179b714dc5a8b1e906
 SHA1 (patch-inc_ucommon_string.h) = e878aefcf3a6e0b21eecdcef1f561c7f68c7a6c5
diff -r ddd4e6c15806 -r 5d75cd38dfd5 devel/ucommon/patches/patch-commoncpp_udp.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ucommon/patches/patch-commoncpp_udp.cpp     Fri Nov 08 21:14:37 2013 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-commoncpp_udp.cpp,v 1.1 2013/11/08 21:14:37 joerg Exp $
+
+--- commoncpp/udp.cpp.orig     2013-11-07 12:53:49.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
+ Socket::Error UDPSocket::getInterfaceIndex(const char *DeviceName,int& InterfaceIndex)
+ {
+ #ifndef _MSWINDOWS_
+-#if defined(IP_ADD_MEMBERSHIP) && defined(SIOCGIFINDEX) && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(_OSF_SOURCE) && !defined(__hpux) && !defined(__GNU__)
++#if defined(IP_ADD_MEMBERSHIP) && defined(SIOCGIFINDEX) && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(_OSF_SOURCE) && !defined(__hpux) && !defined(__GNU__) && 
!defined(__NetBSD__)
+ 
+     struct ip_mreqn  mreqn;
+     struct ifreq       m_ifreq;



Home | Main Index | Thread Index | Old Index