pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/libtrace/patches libtrace: .. and the patch



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5d01421a3809
branches:  trunk
changeset: 404980:5d01421a3809
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Nov 20 21:00:47 2019 +0000

description:
libtrace: .. and the patch

diffstat:

 net/libtrace/patches/patch-lib_format__ndag.c |  24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diffs (28 lines):

diff -r fcb4d7095b06 -r 5d01421a3809 net/libtrace/patches/patch-lib_format__ndag.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libtrace/patches/patch-lib_format__ndag.c     Wed Nov 20 21:00:47 2019 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-lib_format__ndag.c,v 1.1 2019/11/20 21:00:47 adam Exp $
+
+Fix building on systems without multicast join group.
+
+--- lib/format_ndag.c.orig     2019-11-20 15:53:12.972523619 +0000
++++ lib/format_ndag.c
+@@ -181,6 +181,7 @@ static uint8_t check_ndag_header(char *m
+ static int join_multicast_group(char *groupaddr, char *localiface,
+         char *portstr, uint16_t portnum, struct addrinfo **srcinfo) {
+ 
++#ifdef MCAST_JOIN_GROUP
+         struct addrinfo hints;
+         struct addrinfo *gotten;
+         struct addrinfo *group;
+@@ -288,6 +289,9 @@ static int join_multicast_group(char *gr
+ sockcreateover:
+         freeaddrinfo(group);
+         return sock;
++#else
++      return -1;
++#endif
+ }
+ 
+ 



Home | Main Index | Thread Index | Old Index