Received: by mail.netbsd.org (Postfix, from userid 605) id 3256484DA8; Wed, 20 Nov 2019 21:00:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id AE4B784D98 for ; Wed, 20 Nov 2019 21:00:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id fxhr--WLU_58 for ; Wed, 20 Nov 2019 21:00:48 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 1140A84D32 for ; Wed, 20 Nov 2019 21:00:48 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 09650FA97; Wed, 20 Nov 2019 21:00:48 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1574283648200150" MIME-Version: 1.0 Date: Wed, 20 Nov 2019 21:00:48 +0000 From: "Adam Ciarcinski" Subject: CVS commit: pkgsrc/net/libtrace/patches To: pkgsrc-changes@NetBSD.org Reply-To: adam@netbsd.org X-Mailer: log_accum Message-Id: <20191120210048.09650FA97@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1574283648200150 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1574283648200150 Content-Disposition: inline Content-Length: 1015 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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 + } + + --_----------=_1574283648200150--