Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Nov 2018 01:16:43 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r486223 - head/net/openmdns/files
Message-ID:  <201811300116.wAU1GhiV002863@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Fri Nov 30 01:16:43 2018
New Revision: 486223
URL: https://svnweb.freebsd.org/changeset/ports/486223

Log:
  net/openmdns: unbreak on DragonFly
  
  packet.c: In function 'pkt_process':
  packet.c:405:3: warning: implicit declaration of function 'LIST_FOREACH_SAFE'; did you mean 'RB_FOREACH_SAFE'? [-Wimplicit-function-declaration]
     LIST_FOREACH_SAFE(rr, &pkt->arlist, pentry, rraux) {
     ^~~~~~~~~~~~~~~~~
     RB_FOREACH_SAFE
  packet.c:405:39: error: 'pentry' undeclared (first use in this function); did you mean 'rtentry'?
     LIST_FOREACH_SAFE(rr, &pkt->arlist, pentry, rraux) {
                                         ^~~~~~
                                         rtentry
  packet.c:405:39: note: each undeclared identifier is reported only once for each function it appears in
  packet.c:405:53: error: expected ';' before '{' token
     LIST_FOREACH_SAFE(rr, &pkt->arlist, pentry, rraux) {
                                                       ^~
                                                       ;
  
  Reported by:	DPorts (via muscles)

Modified:
  head/net/openmdns/files/patch-compat   (contents, props changed)

Modified: head/net/openmdns/files/patch-compat
==============================================================================
--- head/net/openmdns/files/patch-compat	Fri Nov 30 00:54:51 2018	(r486222)
+++ head/net/openmdns/files/patch-compat	Fri Nov 30 01:16:43 2018	(r486223)
@@ -24,7 +24,7 @@
  	mdns_set_lookup_PTR_hook(&mdns, my_lookup_PTR_hook);
 --- mdnsd/mdns.h.orig	2017-02-18 03:02:15 UTC
 +++ mdnsd/mdns.h
-@@ -31,6 +31,37 @@
+@@ -31,6 +31,41 @@
  #include <event.h>
  #include <string.h>
  
@@ -38,6 +38,10 @@
 +
 +#ifndef LINK_STATE_IS_UP /* from DragonFly and OpenBSD */
 +#define	LINK_STATE_IS_UP(_s)	((_s) >= LINK_STATE_UP)
++#endif
++
++#ifndef LIST_FOREACH_SAFE /* DragonFly */
++#define	LIST_FOREACH_SAFE	LIST_FOREACH_MUTABLE
 +#endif
 +
 +/* Copied from <sys/time.h> on OpenBSD */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811300116.wAU1GhiV002863>