aboutsummaryrefslogtreecommitdiff
path: root/net/openmdns
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2018-11-30 01:16:43 +0000
committerJan Beich <jbeich@FreeBSD.org>2018-11-30 01:16:43 +0000
commit9b05e9c5be005d4e23d72f2c970f185c28460383 (patch)
treee1df85aa8f96ecd26c8503e667aca441bfaee34b /net/openmdns
parentec46d07bc55f6ac8acf706a2c7a77bed8d70f757 (diff)
downloadports-9b05e9c5be005d4e23d72f2c970f185c28460383.tar.gz
ports-9b05e9c5be005d4e23d72f2c970f185c28460383.zip
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)
Notes
Notes: svn path=/head/; revision=486223
Diffstat (limited to 'net/openmdns')
-rw-r--r--net/openmdns/files/patch-compat6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/openmdns/files/patch-compat b/net/openmdns/files/patch-compat
index 3a227a663734..fee6e4a001b1 100644
--- a/net/openmdns/files/patch-compat
+++ b/net/openmdns/files/patch-compat
@@ -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>
@@ -40,6 +40,10 @@
+#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 */
+#ifndef timespeccmp
+#define timespeccmp(tsp, usp, cmp) \