pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ptlib ptlib: fix build on -current
details: https://anonhg.NetBSD.org/pkgsrc/rev/fac6942b13fa
branches: trunk
changeset: 368408:fac6942b13fa
user: tnn <tnn%pkgsrc.org@localhost>
date: Sat Sep 16 15:13:09 2017 +0000
description:
ptlib: fix build on -current
diffstat:
devel/ptlib/distinfo | 4 ++--
devel/ptlib/patches/patch-unix-socket.cxx | 24 ++++++++++++++++++++++--
2 files changed, 24 insertions(+), 4 deletions(-)
diffs (57 lines):
diff -r b00042e73318 -r fac6942b13fa devel/ptlib/distinfo
--- a/devel/ptlib/distinfo Sat Sep 16 14:28:35 2017 +0000
+++ b/devel/ptlib/distinfo Sat Sep 16 15:13:09 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.22 2016/07/19 12:46:06 jperkin Exp $
+$NetBSD: distinfo,v 1.23 2017/09/16 15:13:09 tnn Exp $
SHA1 (ptlib-2.10.7.tar.xz) = 51077b76aed30ab614e31b2a18cb383848d4332c
RMD160 (ptlib-2.10.7.tar.xz) = 0c05b57f5435f4646af05278e66718e0e433a10a
@@ -28,6 +28,6 @@
SHA1 (patch-unix-osutil.cxx) = e907fc2c068f3e20af2f0e97540a1f4e47895a18
SHA1 (patch-unix-pmachdep.h) = b96cdc036af8a1957cd56831c49c2a1d27ca9bf5
SHA1 (patch-unix-serchan.cxx) = f77eb9839a84db91a16b72faafdc8d1499e78b31
-SHA1 (patch-unix-socket.cxx) = 80ff4d0bc67f4bf59e5bfd3e17e3b380f7774bbb
+SHA1 (patch-unix-socket.cxx) = 9806b53f6884698be9ec86c335fe2b0ea50c908a
SHA1 (patch-unix-switch.cxx) = 2c1bc4057a79b6b34651b299042876d2452a84b7
SHA1 (patch-unix-tlib.cxx) = 1685b856cf0991168954f5951f93b9b9f1e08db2
diff -r b00042e73318 -r fac6942b13fa devel/ptlib/patches/patch-unix-socket.cxx
--- a/devel/ptlib/patches/patch-unix-socket.cxx Sat Sep 16 14:28:35 2017 +0000
+++ b/devel/ptlib/patches/patch-unix-socket.cxx Sat Sep 16 15:13:09 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-unix-socket.cxx,v 1.2 2012/10/13 00:49:39 darcy Exp $
+$NetBSD: patch-unix-socket.cxx,v 1.3 2017/09/16 15:13:10 tnn Exp $
- Add DragonFly support
+- NetBSD no longer has RTF_LLINFO, RTF_CLONED, etc since net/route.h r1.98.
--- src/ptlib/unix/socket.cxx.orig 2012-08-23 02:12:27.000000000 +0000
+++ src/ptlib/unix/socket.cxx
@@ -49,7 +50,26 @@
PBoolean process_rtentry(struct rt_msghdr *rtm, char *ptr, unsigned long *p_net_addr,
unsigned long *p_net_mask, unsigned long *p_dest_addr, int *p_metric);
-@@ -1966,7 +1966,7 @@ PBoolean PIPSocket::GetInterfaceTable(In
+@@ -1194,10 +1194,15 @@ PBoolean process_rtentry(struct rt_msghd
+ return PFalse;
+ }
+
+- if ((~rtm->rtm_flags&RTF_LLINFO)
+-#if defined(P_NETBSD) || defined(P_QNX)
++ if (
++#if defined(RTF_LLINFO)
++ (~rtm->rtm_flags&RTF_LLINFO)
++#else
++ 1
++#endif
++#if defined(RTF_CLONED)
+ && (~rtm->rtm_flags&RTF_CLONED) // Net BSD has flag one way
+-#elif !defined(P_OPENBSD) && !defined(P_FREEBSD)
++#elif defined(RTF_WASCLONED)
+ && (~rtm->rtm_flags&RTF_WASCLONED) // MAC has it another
+ #else
+ // Open/Free BSD does not have it at all!
+@@ -1966,7 +1971,7 @@ PBoolean PIPSocket::GetInterfaceTable(In
}
}
Home |
Main Index |
Thread Index |
Old Index