[MacPorts] #61314: unbound @1.12.0: error: use of undeclared identifier 'IF_NAMESIZE'
MacPorts
noreply at macports.org
Wed Oct 14 15:34:55 UTC 2020
#61314: unbound @1.12.0: error: use of undeclared identifier 'IF_NAMESIZE'
---------------------------+----------------------
Reporter: chrstphrchvz | Owner: nerdling
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Resolution: | Keywords:
Port: unbound |
---------------------------+----------------------
Comment (by iefdev):
This got it to work for me. Don't know if the names are the same on all
versions though.
{{{
#!diff
--- services/listen_dnsport.c.orig 2020-10-08 08:24:21.000000000
+0200
+++ services/listen_dnsport.c 2020-10-14 17:27:56.000000000 +0200
@@ -71,6 +71,11 @@
#include <systemd/sd-daemon.h>
#endif
+#if __APPLE__
+ #define HAVE_IFADDRS_H _IFADDRS_H_
+ #define HAVE_NET_IF_H _NET_IF_H_
+#endif
+
#ifdef HAVE_IFADDRS_H
#include <ifaddrs.h>
#endif
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61314#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list