pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/libtrace/patches
Module Name: pkgsrc
Committed By: adam
Date: Wed Nov 20 21:00:47 UTC 2019
Added Files:
pkgsrc/net/libtrace/patches: patch-lib_format__ndag.c
Log Message:
libtrace: .. and the patch
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/net/libtrace/patches/patch-lib_format__ndag.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/net/libtrace/patches/patch-lib_format__ndag.c
diff -u /dev/null pkgsrc/net/libtrace/patches/patch-lib_format__ndag.c:1.1
--- /dev/null Wed Nov 20 21:00:47 2019
+++ pkgsrc/net/libtrace/patches/patch-lib_format__ndag.c Wed Nov 20 21:00:47 2019
@@ -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