svn commit: r486223 - head/net/openmdns/files

Jan Beich jbeich at FreeBSD.org
Fri Nov 30 01:16:44 UTC 2018


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 */


More information about the svn-ports-all mailing list